Moved kernel from 0x1000 to 0x50000

This commit is contained in:
2024-05-07 17:11:44 +02:00
parent e39bc2cabc
commit e617f4fe69
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
SECTIONS {
.text 0x1000 : {
.text 0x50000 : {
*(.text*);
}
.data : {
+2 -3
View File
@@ -3,7 +3,6 @@
[global start]
%define VIDMEM 0xb800
%define KERNEL_LOC 0x1000
%define FILETAB_LOC 0x7000 ; TODO: Read kernel size and location from ft
%define KERNEL_SIZE 30 ; 15kB
@@ -64,9 +63,9 @@ loadKernel:
.read:
; Location
xor ax, ax
mov ax, 0x5000 ; Making es 0x5000 will load the kernel at 0x50000
mov es, ax
mov bx, KERNEL_LOC ; 2nd stage bootloader location
xor bx, bx
; CHS Location
mov al, KERNEL_SIZE
+2 -2
View File
@@ -1,7 +1,7 @@
[bits 16]
[org 0x7e00]
%define KERNEL_LOC 0x1000
%define KERNEL_LOC 0x50000
%define VIDMEM 0xb800
start:
@@ -372,7 +372,7 @@ DATA_SEG equ GDT.dataDescriptor - GDT.start
;; VBE Stuff
;; !! IF YOU WANT TO SELECT ANY VALUE IN THE SETUP, SET THESE TO ZERO !!
width: dw 0 ;1920
width: dw 1920
height: dw 1080
bpp: db 32