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

19
include/attributes.h Normal file
View File

@@ -0,0 +1,19 @@
//
// Created by rick on 24-02-21.
//
#ifndef NEW_KERNEL_ATTRIBUTES_H
#define NEW_KERNEL_ATTRIBUTES_H
// generic
#define att_used __attribute((used))
// function
#define att_noreturn __attribute((noreturn))
#define att_cdecl __attribute((cdecl))
// structure
#define att_packed __attribute((packed))
// field
#define att_aligned(size) __attribute((aligned(size)))
#endif //NEW_KERNEL_ATTRIBUTES_H