diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-02-18 22:33:18 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-02-18 22:33:18 +0000 |
commit | 43150c6020846e23b246ebfa7cb715262c955b49 (patch) | |
tree | cfff6e999be1663970bded70de7fcbd8c738e161 | |
parent | 77feb87f08ada942f7010e2bdf60c5658a77f166 (diff) |
Add note file to elf executable to tell firmware what mode to boot in.
Is this correct to have real-mode 0? It boots...
-rw-r--r-- | sys/arch/powerpc/stand/boot/note.s | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/arch/powerpc/stand/boot/note.s b/sys/arch/powerpc/stand/boot/note.s new file mode 100644 index 00000000000..9d48367bf87 --- /dev/null +++ b/sys/arch/powerpc/stand/boot/note.s @@ -0,0 +1,35 @@ +.section ".note" + + ## Note header - these are in target order + + # length of ns.name, including NULL = 8 = strlen("PowerPC") + 1 + # but not including padding + .long 8 + + # Note descriptor size + .long 20 + + # Note type + .long 0x1275 + + # The name of the owner + .asciz "PowerPC" + .balign 4 + + + ## Note descriptor - these are in BE order + + # Real-mode # 0 or -1 (true) + .long 0 + + # real-base + .byte 0xff ; .byte 0xff ; .byte 0xff ; .byte 0xff + # real-size + .byte 0x00 ; .byte 0x00 ; .byte 0x00 ; .byte 0x00 + + # virt-base + .byte 0xff ; .byte 0xff ; .byte 0xff ; .byte 0xff + # virt-size + .byte 0x00 ; .byte 0x00 ; .byte 0x00 ; .byte 0x00 + +.previous |