From 49776b17697afb8f9b4f7c5689d16a44633aed48 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sun, 20 Jul 2025 13:53:24 +0200 Subject: 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 --- src/kernel.asm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel.asm') 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 -- cgit v1.2.3