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:
+2
-10
@@ -1,16 +1,8 @@
|
||||
global loader
|
||||
|
||||
align 4
|
||||
MAGIC_NUMBER equ 0x1BADB002
|
||||
FLAGS equ 0x0
|
||||
CHECKSUM equ -MAGIC_NUMBER
|
||||
KERNEL_STACK_SIZE equ 4096 ; size of stack in bytes
|
||||
|
||||
dd MAGIC_NUMBER
|
||||
dd FLAGS
|
||||
dd CHECKSUM
|
||||
|
||||
align 8
|
||||
loader:
|
||||
KERNEL_STACK_SIZE equ 8192
|
||||
mov esp, kernel_stack; + KERNEL_STACK_SIZE ; ont ESP to the start of the stack (end of memory area)
|
||||
extern kmain
|
||||
call kmain
|
||||
|
||||
Reference in New Issue
Block a user