1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

Grub stuff

This commit is contained in:
Adrien Bourmault 2019-02-12 23:08:00 +01:00
parent 6880b6ab80
commit e0371f39d1

View File

@ -38,7 +38,7 @@ _start:
mov [Bootdrv], dl mov [Bootdrv], dl
xor dl, dl xor dl, dl
jmp 0x0000:main ;; pas sûr jmp 0x0000:main ; pas sûr
[align 4] [align 4]
dd MULTIBOOT_HEADER_MAGIC dd MULTIBOOT_HEADER_MAGIC
@ -66,39 +66,6 @@ MB_start:
main: main:
;; XXX NEED TO SWITCH TO RM HERE ;;
;; compatibility check
push si
mov si, Init
call PrintB
pop si
call Is64bits
jc ErrorNo64
push si
mov si, Pass
call PrintB
pop si
;; Enabling A20
push si
mov si, EnA20
call PrintB
pop si
call set_a20
push si
mov si, Pass
call PrintB
pop si
;; DISABLING CURSOR BLINKING AND GETTING INFOS
call get_dimensions
call disable_cursor
;;GO GDT64 ;;GO GDT64
cli ; disable interrupts cli ; disable interrupts
lgdt [GDT64] lgdt [GDT64]