diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-10 20:55:56 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-10 20:55:56 +0200 |
commit | eea5bf4b859eb56c5772c58ca54937a90a10e7ee (patch) | |
tree | 391b31a28a3740d3fd52a9a9d1c651bc9f12cc2b /src/boot/magic.asm | |
parent | 1625a4752545e54c439a38f3393ab9d72bfee721 (diff) | |
download | abaos-eea5bf4b859eb56c5772c58ca54937a90a10e7ee.tar.gz abaos-eea5bf4b859eb56c5772c58ca54937a90a10e7ee.tar.bz2 |
moved bootloader to subdirectory
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 |