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:
@@ -5,7 +5,7 @@
|
||||
#ifndef NEW_KERNEL_LIBK_H
|
||||
#define NEW_KERNEL_LIBK_H
|
||||
|
||||
#include <myke/attributes.h>
|
||||
#include <attributes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
extern void *_kernel_start;
|
||||
@@ -17,8 +17,8 @@ bool k_addr_in_kspace(void *addr);
|
||||
|
||||
void k_wait_for_interrupt();
|
||||
|
||||
void noreturn k_panics(const char *msg);
|
||||
void att_noreturn k_panics(const char *msg);
|
||||
|
||||
void noreturn k_panic();
|
||||
void att_noreturn k_panic();
|
||||
|
||||
#endif //NEW_KERNEL_LIBK_H
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
#define NEW_KERNEL_SYSCALL_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <myke/attributes.h>
|
||||
#include <attributes.h>
|
||||
|
||||
#define SYSCALL_START_SCHEDULER 0x01
|
||||
#define SYSCALL_YIELD_JOB 0x02
|
||||
#define SYSCALL_YIELD_IRQ 0x03
|
||||
#define SYSCALL_SUSPEND 0x04
|
||||
|
||||
void noreturn syscall_start_scheduler();
|
||||
void att_noreturn syscall_start_scheduler();
|
||||
|
||||
void syscall_yield_job();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user