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,10 +2,10 @@
// Created by rick on 22-02-21.
//
#include <attributes.h>
#include <sys/types.h>
#include <myke/libk/syscall.h>
#include <myke/attributes.h>
void syscall1(uint32_t arg1) {
__asm__("int $0x80"
@@ -19,7 +19,7 @@ void syscall2(uint32_t arg1, uint32_t arg2) {
: "a"(arg1), "b"(arg2));
}
void noreturn syscall_start_scheduler() {
void att_noreturn syscall_start_scheduler() {
syscall1(SYSCALL_START_SCHEDULER);
while (1) { __asm__("hlt"); };
}