mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
Fix asm function signatures
This commit is contained in:
parent
1809ab45aa
commit
ae38fb3fe2
1 changed files with 4 additions and 4 deletions
|
@ -47,8 +47,8 @@ static void gdt_set_gate(int num, unsigned int base, unsigned int limit, unsigne
|
|||
|
||||
static void idt_set_gate(unsigned char num, unsigned int base, unsigned short sel, unsigned char flags);
|
||||
|
||||
void gdt_flush(unsigned int pointer);
|
||||
void idt_flush(unsigned int pointer);
|
||||
void gdt_flush(const struct GdtPointer *pointer);
|
||||
void idt_flush(const struct IdtPointer *pointer);
|
||||
|
||||
void isr0();
|
||||
void isr1();
|
||||
|
@ -104,7 +104,7 @@ void gdt_initialize()
|
|||
gdt_pointer.limit = sizeof(struct GdtEntry) * GDT_SIZE - 1;
|
||||
gdt_pointer.base = (unsigned int)&gdt_entries;
|
||||
|
||||
gdt_flush((unsigned int)&gdt_pointer);
|
||||
gdt_flush(&gdt_pointer);
|
||||
}
|
||||
|
||||
void idt_initialize()
|
||||
|
@ -153,7 +153,7 @@ void idt_initialize()
|
|||
idt_pointer.limit = sizeof(struct IdtEntry) * IDT_SIZE - 1;
|
||||
idt_pointer.base = (unsigned int)&idt_entries;
|
||||
|
||||
idt_flush((unsigned int)&idt_pointer);
|
||||
idt_flush(&idt_pointer);
|
||||
}
|
||||
|
||||
void gdt_set_gate(int num, unsigned int base, unsigned int limit, unsigned char access, unsigned char gran)
|
||||
|
|
Loading…
Reference in a new issue