diff options
Diffstat (limited to 'boot/simple.c')
-rw-r--r-- | boot/simple.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/boot/simple.c b/boot/simple.c new file mode 100644 index 0000000..ca3e796 --- /dev/null +++ b/boot/simple.c @@ -0,0 +1,10 @@ +#include "bootloader.h" + +_Noreturn void bootloader(struct systemid *boot) +{ + if (!boot->load_addr) fail(); + + long *stack = (long*) (boot->stack_master ? boot->stack_master : 0x06002000); + jump((void*) boot->load_addr, stack); +} + |