2 * Copyright 2003-2013, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
7 #include <boot/platform.h>
8 #include <boot/kernel_args.h>
13 extern "C" int boot_main(struct stage2_args
*args
);
14 extern struct kernel_args gKernelArgs
;
20 puts("*** exit ***\n");
26 platform_start_kernel(void)
28 preloaded_elf32_image
*image
= static_cast<preloaded_elf32_image
*>(
29 gKernelArgs
.kernel_image
.Pointer());
31 printf("*** jump to kernel at %p ***\n*** program exits.\n",
32 (void *)image
->elf_header
.e_entry
);
38 main(int argc
, char **argv
)
40 // The command arguments are evaluated in platform_devices.cpp!