Add: multiboot2: entering graphics mode

This commit is contained in:
xamidev
2024-08-18 21:03:26 +02:00
parent 2f562758ad
commit ca001598fc
4 changed files with 108 additions and 20 deletions

15
link.ld
View File

@@ -1,28 +1,27 @@
ENTRY(loader)
SECTIONS {
/* Address to load at; 1MB */
/* Address to load at; 2MB */
. = 0x00100000;
/*. = 2M;*/
.__mbHeader : {
*(.__mbHeader)
.multiboot_header ALIGN(4K) : {
*(.multiboot_header)
}
/* Align relevant sections at 4KB */
.text ALIGN (0x1000) :
.text ALIGN (4K) :
{
*(.text)
*(.rodata)
}
.data ALIGN (0x1000) :
.data ALIGN (4K) :
{
*(.data)
}
.bss ALIGN (0x1000) :
.bss ALIGN (4K) :
{
*(COMMON)
*(.bss)