diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 01:56:58 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 01:56:58 +0800 |
| commit | 98abe576a812c5a1710dd6d6f1680042bd1296d6 (patch) | |
| tree | 20c4f00b8a1a3fbc203cd2fcfbafd697215063a6 /mubios/arch | |
| parent | 2297fb36dc2406926d4d148b5beae36adbc219da (diff) | |
| download | rcc-project-98abe576a812c5a1710dd6d6f1680042bd1296d6.tar.gz rcc-project-98abe576a812c5a1710dd6d6f1680042bd1296d6.tar.xz | |
[mubios] Building a 32-bit C entry in protected mode
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios/arch')
| -rw-r--r-- | mubios/arch/mode_switch.S | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
