pull/15/head
E. Almqvist 3 years ago
parent 5c9ae46217
commit 8325d90e9b
  1. 4
      src/bootloader.asm
  2. 9
      src/pm.asm

@ -31,12 +31,12 @@
%include "equ/ascii.asm"
%include "bios.asm"
%include "pm.asm"
; Data
welcome_string: db "e Operating-System (eOS)", ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "Version 2021 0.0", ASCII_END
BOOT_DRIVE: db 0
%include "pm.asm"
; Bootsector
times 510-($-$$) db 0
dw 0xaa55 ; magic BIOS numbers

@ -3,4 +3,11 @@
%include "pm/vga/print.asm"
; GDT & switching to PM
%include "pm/gdt.asm" ; GDT
%include "pm/gdt.asm" ; GDT defined here
; Switching to PM
lgdt [gdt_descriptor] ; Tell the CPU about the GDT
mov eax, cr0 ; Set first bit of the CR0 register
or eax, 0x1 ; to 1
mov cr0, eax ; Update the control register

Loading…
Cancel
Save