Implemented getting bootargs from OF. Untested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32081 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -132,6 +132,8 @@ _start(uint32 _unused1, uint32 _unused3, void *openFirmwareEntry)
|
|||||||
void
|
void
|
||||||
start(void *openFirmwareEntry)
|
start(void *openFirmwareEntry)
|
||||||
{
|
{
|
||||||
|
char bootargs[512];
|
||||||
|
|
||||||
// stage2 args - might be set via the command line one day
|
// stage2 args - might be set via the command line one day
|
||||||
stage2_args args;
|
stage2_args args;
|
||||||
args.heap_size = HEAP_SIZE;
|
args.heap_size = HEAP_SIZE;
|
||||||
@@ -139,6 +141,13 @@ start(void *openFirmwareEntry)
|
|||||||
|
|
||||||
of_init(openFirmwareEntry);
|
of_init(openFirmwareEntry);
|
||||||
|
|
||||||
|
// check for arguments
|
||||||
|
if (of_getprop(gChosen, "bootargs", bootargs, sizeof(bootargs)) != OF_FAILED) {
|
||||||
|
static const char *sArgs[] = { NULL, NULL };
|
||||||
|
sArgs[0] = (const char *)bootargs;
|
||||||
|
args.arguments = sArgs;
|
||||||
|
}
|
||||||
|
|
||||||
determine_machine();
|
determine_machine();
|
||||||
console_init();
|
console_init();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user