diff options
Diffstat (limited to 'src/boot/magic.asm')
-rw-r--r-- | src/boot/magic.asm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/boot/magic.asm b/src/boot/magic.asm new file mode 100644 index 0000000..f7aaf0d --- /dev/null +++ b/src/boot/magic.asm @@ -0,0 +1,9 @@ +; pad rest of sector with zeroes so we get 512 bytes in the end +times 512-14-($-$$) db 0 + +; the magic string we search for in stage 2 to ensure we don't read +; a truncated kernel image +; we make it unique per compilation to avoid funny problems if +; the size of the image differs between compilation steps and the +; host system doens't initialize or randomize the RAM. +db "ABAOS", %[MAGIC], 0 |