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:
2021-03-21 17:34:38 +01:00
parent 513693189e
commit 20ab9e1d6e
28 changed files with 351 additions and 121 deletions

View File

@@ -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;"