From c5088789f989d9d9dd5f367da677a35f2a1e623b Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sun, 19 Apr 2020 15:14:10 +0200 Subject: [PATCH] Proof kernel against being invoked via 0x7C0:0 --- boot/kernel.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/kernel.asm b/boot/kernel.asm index e79d6a0..482904b 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -1,6 +1,6 @@ cpu 8086 org 0x500 - jmp init + jmp 0:(init+0x7C00-$$) %include "inc/bpb.asm"