diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-14 10:44:00 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-14 10:44:00 +0200 |
| commit | dc7bf2f47d6f97407e3b50ae0b8ab59fd51079e5 (patch) | |
| tree | 1ed444c804d9ff55e23a7a007275c3d5c649a455 /boot2/pm.asm | |
| parent | 7df4060ae807dd27f3ae0a11f243897f36053ba1 (diff) | |
moving unused files folder
Diffstat (limited to 'boot2/pm.asm')
| -rw-r--r-- | boot2/pm.asm | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/boot2/pm.asm b/boot2/pm.asm deleted file mode 100644 index e6f3474..0000000 --- a/boot2/pm.asm +++ /dev/null @@ -1,36 +0,0 @@ -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;; Miguel's FoolOS Helper Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; switch_to_pm - actual switch from 16bit real to 32bit protected -; init_pm - sets up some regs and calls boot_32_pm -; - -[bits 16] -switch_to_pm: - - cli ;switch off interrupts! - lgdt [gdt_descriptor] ;load descriptor table! -; lldt [gdt_descriptor] ;load descriptor table! (local) - - ;switch on 32-bit protected mode - mov eax, cr0 - or eax,0x1 - mov cr0, eax - - jmp CODE_SEG:init_pm - -[bits 32] -init_pm: - - mov ax, DATA_SEG - mov ds, ax - mov ss, ax - mov es, ax - mov fs, ax - mov gs, ax - - mov ebp, 0x07bff - mov esp, ebp - - call boot_32_pm ;continue booting in 32-bit protected mode |
