Remove interrupt setup from asm bootloader, add io module, memcpy functions, and serial driver
This commit is contained in:
parent
799b77d11a
commit
42c9ba12dc
1 changed files with 422 additions and 264 deletions
|
|
@ -73,11 +73,8 @@ long_mode:
|
|||
xor rax, rax
|
||||
mov eax, [kernel_base + 0x18]
|
||||
mov rbx, gdtr
|
||||
xchg bx, bx
|
||||
jmp rax
|
||||
.lp:
|
||||
sti
|
||||
hlt
|
||||
jmp .lp
|
||||
|
||||
gdtr:
|
||||
dw gdt.end + 1 ; size
|
||||
|
|
@ -179,5 +176,3 @@ long_mode:
|
|||
at TSS.iomap_base, dw 0xFFFF
|
||||
iend
|
||||
.end:
|
||||
|
||||
%include "interrupts-x86_64.asm"
|
||||
|
|
|
|||
Loading…
Reference in a new issue