feat: Added nanoprintf, kprintf and GDT
This commit is contained in:
parent
aa5a1e8e1a
commit
248879c099
9 changed files with 1346 additions and 5 deletions
|
@ -3,6 +3,9 @@
|
|||
#include <arch/cpu.h>
|
||||
#include <arch/io.h>
|
||||
#include <dev/serial.h>
|
||||
#include <util/kprintf.h>
|
||||
#include <util/log.h>
|
||||
#include <arch/gdt.h>
|
||||
|
||||
__attribute__((used, section(".limine_requests"))) static volatile LIMINE_BASE_REVISION(3);
|
||||
__attribute__((used, section(".limine_requests_start"))) static volatile LIMINE_REQUESTS_START_MARKER;
|
||||
|
@ -18,10 +21,11 @@ void emk_entry(void)
|
|||
|
||||
if (!LIMINE_BASE_REVISION_SUPPORTED)
|
||||
{
|
||||
serial_write(COM1, (uint8_t *)"ERROR: Limine base revision is not supported\n", 45);
|
||||
early("ERROR: Limine base revision is not supported\n");
|
||||
hcf();
|
||||
}
|
||||
|
||||
serial_write(COM1, (uint8_t *)"Hello, World!\n", 14);
|
||||
gdt_init();
|
||||
early("Initialized GDT");
|
||||
hlt();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue