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:
parent
745cf9045c
commit
295e622fe1
4 changed files with 7 additions and 3 deletions
6
include/kdtables.h
Normal file
6
include/kdtables.h
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef KDTABLES_H
|
||||||
|
#define KDTABLES_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -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
0
src/kdtables.c
Normal 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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue