2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
7 #define BOOTDIR_BASE (BASE + 0x1000)
8 #define STAGE2_BOOTDIR_ENTRY (BOOTDIR_BASE + 0x80)
9 #define STAGE2_BOOTDIR_PAGE (STAGE2_BOOTDIR_ENTRY + 0x60)
10 #define STAGE2_OFFSET (STAGE2_BOOTDIR_ENTRY + 0x74)
15 lis 1,tempstack_end@ha /* load the new stack */
16 ori 1,1,tempstack_end@l
18 /* load the base of the bootdir */
20 ori 8,8,BOOTDIR_BASE@l
22 /* load the offset the stage2 will start into the bootdir */
23 lis 9,STAGE2_BOOTDIR_PAGE@ha
24 ori 9,9,STAGE2_BOOTDIR_PAGE@l
28 /* load the offset into that page the stage2 entry point will be */
29 lis 10,STAGE2_OFFSET@ha
30 ori 10,10,STAGE2_OFFSET@l
33 /* add them all together */
47 #include "build/ppc/boot/final.asminclude"