summaryrefslogtreecommitdiff
path: root/src/magic.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/magic.asm')
-rw-r--r--src/magic.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/magic.asm b/src/magic.asm
new file mode 100644
index 0000000..c8c580e
--- /dev/null
+++ b/src/magic.asm
@@ -0,0 +1,6 @@
+; pad rest of sector with zeroes so we get 512 bytes in the end
+times 512-11-($-$$) db 0
+
+; the magic string we search for in stage 2 to ensure we don't read
+; a truncated kernel image
+db "ABAOSMAGIC", 0