2 ** Copyright 2001-2008, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
8 #include <boot/stage2.h>
9 #include "stage2_priv.h"
12 extern void *_payload_start
;
13 extern void *_payload_end
;
14 #define TARGET ((void *)0x400000) // 4MB
16 void stage1_main(void *multiboot_info
);
18 void stage1_main(void *multiboot_info
)
24 dprintf("stage1 boot\n");
26 dprintf("decompressing system, payload at %p...\n", &_payload_start
);
27 len
= gunzip((unsigned char const *)&_payload_start
, TARGET
, kmalloc(32*1024));
29 stage2_main(multiboot_info
, 0, 0, 0);