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,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"); };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user