diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 01:38:32 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 01:38:32 +0800 |
| commit | 2297fb36dc2406926d4d148b5beae36adbc219da (patch) | |
| tree | f8d2beb9b080fb6bf0fbf57af8050f9fa8328805 /mubios/arch/reset.S | |
| parent | 7cedda09fc22abc03f5b2e2507c87cc7c480a6a2 (diff) | |
| download | rcc-project-2297fb36dc2406926d4d148b5beae36adbc219da.tar.gz rcc-project-2297fb36dc2406926d4d148b5beae36adbc219da.tar.xz | |
[mubios] Implement the switch from 16-bit to 32-bit protected mode
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios/arch/reset.S')
| -rw-r--r-- | mubios/arch/reset.S | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
