Commit b9a5b815 by malcolm

Cleanup

parent faea7c7a
Showing with 0 additions and 8 deletions
...@@ -8,9 +8,6 @@ typedef struct{ ...@@ -8,9 +8,6 @@ typedef struct{
static gdt_desc _gdt [MAX_GDT_DESC]; static gdt_desc _gdt [MAX_GDT_DESC];
static gdtr _gdtr; static gdtr _gdtr;
/*static void gdt_install () {
asm volatile("lgdt (%0)": : "p"(&_gdtr));
}*/
extern void gdt_install(gdtr _gdtr); extern void gdt_install(gdtr _gdtr);
void gdt_set_desc(uint32_t i, uint64_t base, uint64_t limit, uint8_t access, uint8_t gran) void gdt_set_desc(uint32_t i, uint64_t base, uint64_t limit, uint8_t access, uint8_t gran)
...@@ -24,7 +21,6 @@ void gdt_set_desc(uint32_t i, uint64_t base, uint64_t limit, uint8_t access, uin ...@@ -24,7 +21,6 @@ void gdt_set_desc(uint32_t i, uint64_t base, uint64_t limit, uint8_t access, uin
_gdt[i].high_base = (uint8_t)((base >> 24) & 0xff); _gdt[i].high_base = (uint8_t)((base >> 24) & 0xff);
_gdt[i].lim = (uint16_t)(limit & 0xffff); _gdt[i].lim = (uint16_t)(limit & 0xffff);
//! set flags and grandularity bytes
_gdt[i].flags = access; _gdt[i].flags = access;
_gdt[i].gran = (uint8_t)((limit >> 16) & 0x0f); _gdt[i].gran = (uint8_t)((limit >> 16) & 0x0f);
_gdt[i].gran |= gran & 0xf0; _gdt[i].gran |= gran & 0xf0;
......
...@@ -8,10 +8,6 @@ typedef struct{ ...@@ -8,10 +8,6 @@ typedef struct{
static idt_desc _idt [MAX_IDT_INT]; static idt_desc _idt [MAX_IDT_INT];
static idtr _idtr; static idtr _idtr;
/*static void idt_install () {
//TODO: VOODOO MAGIC
asm volatile ("lidt (%0)": : "p"(&(_idtr)));
}*/
extern void idt_install(idtr _idtr); extern void idt_install(idtr _idtr);
static void default_handler () { static void default_handler () {
//DEBUG OUTPUT MAYBE? //DEBUG OUTPUT MAYBE?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment