SMP and timer interrupts
This commit is contained in:
29
kernel/amd64/gdt.h
Normal file
29
kernel/amd64/gdt.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef _KERNEL_AMD64_GDT_H
|
||||
#define _KERNEL_AMD64_GDT_H
|
||||
|
||||
#include <aux/compiler.h>
|
||||
#include <libk/std.h>
|
||||
|
||||
#define KSTACK_SIZE (16 * 1024)
|
||||
|
||||
struct gdt_entry {
|
||||
uint16_t limitlow;
|
||||
uint16_t baselow;
|
||||
uint8_t basemid;
|
||||
uint8_t access;
|
||||
uint8_t gran;
|
||||
uint8_t basehigh;
|
||||
} PACKED;
|
||||
|
||||
struct gdt_ptr {
|
||||
uint16_t limit;
|
||||
uint64_t base;
|
||||
} PACKED;
|
||||
|
||||
struct gdt_extended {
|
||||
struct gdt_entry old[5];
|
||||
struct gdt_entry tsslow;
|
||||
struct gdt_entry tsshigh;
|
||||
} PACKED;
|
||||
|
||||
#endif // _KERNEL_AMD64_GDT_H
|
||||
Reference in New Issue
Block a user