summaryrefslogtreecommitdiff
path: root/src/magic.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/magic.asm')
-rw-r--r--src/magic.asm9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/magic.asm b/src/magic.asm
index c8c580e..56f16c5 100644
--- a/src/magic.asm
+++ b/src/magic.asm
@@ -1,6 +1,11 @@
; pad rest of sector with zeroes so we get 512 bytes in the end
-times 512-11-($-$$) db 0
+times 512-31-($-$$) db 0
; the magic string we search for in stage 2 to ensure we don't read
; a truncated kernel image
-db "ABAOSMAGIC", 0
+; we make it unique per compilation to avoid funny problems if
+; the size of the image differs between compilation stpes and the
+; host system doens't initialize or randomize the RAM.
+; __UTC_DATE_NUM__ is YYYY-MM-DD
+; __UTC_TIME_NUM__ is HH:mm:SS
+db "ABAOSMAGIC ", __UTC_DATE__, " ", __UTC_TIME__, 0