Implemented Higher Half Kernel!

- Minor makefile chnages
- stage3.c "prekernel", sets up memory stuff and jumps to kernel
- kernel is now at 0xC0000000 - 3GB+ "higher half"
- Added some global variables in memory/addresses.h
This commit is contained in:
2024-05-26 15:49:48 +02:00
parent 01323c5874
commit e9abfc2e4a
11 changed files with 135 additions and 65 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
[bits 16]
[org 0x7e00]
%define KERNEL_LOC 0x50000
%define STAGE3_LOC 0x50000
%define VIDMEM 0xb800
start:
@@ -324,7 +324,7 @@ protected_start:
rep movsd
; Perform The far jump
jmp CODE_SEG:KERNEL_LOC
jmp CODE_SEG:STAGE3_LOC
;; Data
driveNum: db 0