Moved the kernel to the 1MB boundary in the linker script. Also did some

stuff with ccls for language server stuff.
This commit is contained in:
lordtet 2025-06-09 18:27:55 -04:00
parent 745cf9045c
commit 295e622fe1
4 changed files with 7 additions and 3 deletions

6
include/kdtables.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef KDTABLES_H
#define KDTABLES_H
#endif

View file

@ -4,7 +4,7 @@ ENTRY(start)
SECTIONS SECTIONS
{ {
/*start me at 1Mb because below that is x86 essential stuff, which we dont want to be written on top of.*/ /*start me at 1Mb because below that is x86 essential stuff, which we dont want to be written on top of.*/
. = 2M; . = 1M;
/* we're going to maintain 4K alignment - apparently useful for paging, and i'm not complaining about the lost space anyway. */ /* we're going to maintain 4K alignment - apparently useful for paging, and i'm not complaining about the lost space anyway. */

0
src/kdtables.c Normal file
View file

View file

@ -10,7 +10,6 @@ void kern_main(uint32_t multiboot_magic, multiboot_info_t* multiboot_info)
{ {
//wipe the screen //wipe the screen
vga_clear(); vga_clear();
//We're going to use this buffer as our 8char hex representation for reading mem //We're going to use this buffer as our 8char hex representation for reading mem
vga_printf("Entry eax:%X\n", multiboot_magic); vga_printf("Entry eax:%X\n", multiboot_magic);
@ -24,6 +23,5 @@ void kern_main(uint32_t multiboot_magic, multiboot_info_t* multiboot_info)
vga_printf("MEM_LOWER:%X\n", multiboot_info->mem_lower); vga_printf("MEM_LOWER:%X\n", multiboot_info->mem_lower);
vga_printf("MEM_UPPER:%X\n", multiboot_info->mem_upper); vga_printf("MEM_UPPER:%X\n", multiboot_info->mem_upper);
} }