feat: gdt, attributes move, reorder
Added late gdt setup with initial tss Moved attributes to include root Reordered some imports
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
// Created by rick on 02-02-21.
|
||||
//
|
||||
|
||||
#include <attributes.h>
|
||||
|
||||
#include <myke/libk/kprint.h>
|
||||
#include <myke/attributes.h>
|
||||
#include <myke/libk/libk.h>
|
||||
|
||||
bool k_addr_in_kspace(void *addr) {
|
||||
@@ -14,13 +15,13 @@ void k_wait_for_interrupt() {
|
||||
__asm__ __volatile__("hlt;");
|
||||
}
|
||||
|
||||
void noreturn k_panics(const char *msg) {
|
||||
void att_noreturn k_panics(const char *msg) {
|
||||
// todo this is not printed
|
||||
kprint_sync(msg);
|
||||
k_panic();
|
||||
}
|
||||
|
||||
void noreturn k_panic() {
|
||||
void att_noreturn k_panic() {
|
||||
kprint_sync("PANIC!");
|
||||
while (1) {
|
||||
__asm__ __volatile__("cli;"
|
||||
|
||||
Reference in New Issue
Block a user