Added code to setup and build the IDT. Updated the Bochs' configuration file to allow break points to be set and did some general code clean-up.
This commit is contained in:
+10
@@ -38,3 +38,13 @@ load_gdt:
|
||||
|
||||
return:
|
||||
ret ; Now we've changed CS to 0x08
|
||||
|
||||
global load_idt
|
||||
|
||||
; load_idt - Installs the IDT
|
||||
; stack: [esp + 4] The address of the IDT
|
||||
; [esp ] The return address
|
||||
load_idt:
|
||||
mov eax, [esp + 4]
|
||||
lidt [eax]
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user