From 98abe576a812c5a1710dd6d6f1680042bd1296d6 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sun, 8 Nov 2026 01:56:58 +0800 Subject: [mubios] Building a 32-bit C entry in protected mode Signed-off-by: Richard Qin --- mubios/arch/mode_switch.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mubios/arch/mode_switch.S') diff --git a/mubios/arch/mode_switch.S b/mubios/arch/mode_switch.S index 17fbe72..f114870 100644 --- a/mubios/arch/mode_switch.S +++ b/mubios/arch/mode_switch.S @@ -22,6 +22,8 @@ .section .text16, "ax" + .extern post_main + .global enter_protected_mode .type enter_protected_mode, @function @@ -101,6 +103,8 @@ protected_mode_entry: mov esp, 0x00008000 + call post_main + protected_mode_halt: hlt jmp protected_mode_halt -- cgit v1.2.3