mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#include <limine.h>
|
||||
#include <kernel/console.h>
|
||||
#include <arch/cls.h>
|
||||
|
||||
static volatile struct limine_terminal_request liminettyr = {
|
||||
.id = LIMINE_TERMINAL_REQUEST,
|
||||
.revision = 0
|
||||
};
|
||||
|
||||
struct limine_terminal_response* liminetty;
|
||||
|
||||
void liminewrite(char* str, size_t c){
|
||||
|
||||
liminetty->write(liminetty->terminals[0], str, c);
|
||||
|
||||
}
|
||||
|
||||
void kmain(){
|
||||
if(!liminettyr.response)
|
||||
return;
|
||||
|
||||
liminetty = liminettyr.response;
|
||||
liminetty->write += 0xFFFF800000000000;
|
||||
|
||||
console_setwritehook(liminewrite);
|
||||
|
||||
bsp_setcls();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user