diff options
| author | kotorifan <kotorifan05@gmail.com> | 2026-02-03 22:50:32 +0100 |
|---|---|---|
| committer | kotorifan <kotorifan05@gmail.com> | 2026-02-04 09:01:10 +0100 |
| commit | 8a0ab6de92c0e2b4260d6a149c43c58d004d74d9 (patch) | |
| tree | b1bfdc5d119dd01e6c603ddcb40b922e672b6c24 /src/boot/boot.stage2.pm.asm | |
| parent | 7ce57a428f4c85771582c7f486c3553cacf80c15 (diff) | |
| download | kotori-os-8a0ab6de92c0e2b4260d6a149c43c58d004d74d9.tar.gz | |
Added common.asm
Diffstat (limited to 'src/boot/boot.stage2.pm.asm')
| -rw-r--r-- | src/boot/boot.stage2.pm.asm | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/boot/boot.stage2.pm.asm b/src/boot/boot.stage2.pm.asm deleted file mode 100644 index 8897be6..0000000 --- a/src/boot/boot.stage2.pm.asm +++ /dev/null @@ -1,28 +0,0 @@ - ;; boot.stage2.pm.asm - - - [bits 16] - %include "boot.stage2.gdt32.asm" - -_enable_pm: - cli - lgdt [GDT32_ptr] - - ;; Enable Protected Mode - mov eax, cr0 - or eax, 1 - mov cr0, eax - - jmp CODE_SEG32:_protected_mode - -[bits 32] -_protected_mode: - mov ax, DATA_SEG32 - mov ds, ax - mov ss, ax - mov es, ax - mov fs, ax - mov gs, ax - - ret - |
