Use prettier #defines for attributes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <amd64/init.h>
|
||||
#include <amd64/intr.h>
|
||||
#include <amd64/tss.h>
|
||||
#include <aux/compiler.h>
|
||||
#include <libk/std.h>
|
||||
#include <libk/string.h>
|
||||
|
||||
@@ -23,23 +24,21 @@ struct gdt_entry {
|
||||
uint8_t access;
|
||||
uint8_t gran;
|
||||
uint8_t basehigh;
|
||||
} __attribute__ ((packed));
|
||||
} PACKED;
|
||||
|
||||
struct gdt_ptr {
|
||||
uint16_t limit;
|
||||
uint64_t base;
|
||||
} __attribute__ ((packed));
|
||||
} PACKED;
|
||||
|
||||
struct gdt_extended {
|
||||
struct gdt_entry old[5];
|
||||
struct gdt_entry tsslow;
|
||||
struct gdt_entry tsshigh;
|
||||
} __attribute__ ((packed));
|
||||
} PACKED;
|
||||
|
||||
/* clang-format off */
|
||||
__attribute__ ((aligned (16))) static volatile uint8_t kernel_stack[KSTACK_SIZE];
|
||||
__attribute__ ((aligned (16))) static volatile struct gdt_extended gdt;
|
||||
/* clang-format on */
|
||||
ALIGNED (16) static volatile uint8_t kernel_stack[KSTACK_SIZE];
|
||||
ALIGNED (16) static volatile struct gdt_extended gdt;
|
||||
|
||||
static void amd64_gdt_set (volatile struct gdt_entry* ent, uint32_t base,
|
||||
uint32_t limit, uint8_t acc, uint8_t gran) {
|
||||
|
||||
Reference in New Issue
Block a user