From 2297fb36dc2406926d4d148b5beae36adbc219da Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sun, 8 Nov 2026 01:38:32 +0800 Subject: [mubios] Implement the switch from 16-bit to 32-bit protected mode Signed-off-by: Richard Qin --- mubios/arch/reset.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mubios/arch/reset.S') diff --git a/mubios/arch/reset.S b/mubios/arch/reset.S index b3dbde2..aedf3d1 100644 --- a/mubios/arch/reset.S +++ b/mubios/arch/reset.S @@ -19,6 +19,8 @@ .intel_syntax noprefix .code16 + + .extern enter_protected_mode .section .text16, "ax" @@ -35,6 +37,8 @@ reset_entry: mov ss, ax mov sp, 0x8000 + call enter_protected_mode + reset_halt: hlt jmp reset_halt -- cgit v1.2.3