summaryrefslogtreecommitdiff
path: root/src/kernel.asm
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-07-20 13:53:24 +0200
committerCarlos Maiolino <[email protected]>2025-07-20 13:53:24 +0200
commit49776b17697afb8f9b4f7c5689d16a44633aed48 (patch)
treead480cf7960f9ccd648493052cfac34bf09ca5df /src/kernel.asm
parent636230619806eaefd1ada0183a011c7d05bf7aca (diff)
Force alignment of kerne code.
It should be aligned to 16-bits IIRC, forcing the kernel.asm to be alined to a 512 byte boundary should suffice Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/kernel.asm')
-rw-r--r--src/kernel.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel.asm b/src/kernel.asm
index 93afff7..6d2779a 100644
--- a/src/kernel.asm
+++ b/src/kernel.asm
@@ -25,3 +25,5 @@ _start:
jmp $
+; Hack to align the source code at 16bytes (because 512 is a multiple of 16)
+times 512 - ($ - $$) db 0