mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-05 02:53:10 +00:00
Changed camelCase to snake_case
This commit is contained in:
+3
-3
@@ -7,14 +7,14 @@ __align(16) // performace :fire:
|
||||
static struct idt_entry idt[IDT_ENTRIES];
|
||||
static struct idt_pointer idtp;
|
||||
|
||||
void idt_setGate(uint8_t i, void* handler, uint8_t flags) {
|
||||
void idt_set_gate(uint8_t i, void* handler, uint8_t flags) {
|
||||
uint32_t offset = (uint32_t)handler;
|
||||
struct idt_entry* entry = &idt[i];
|
||||
|
||||
entry->offsetLow = (uint16_t)offset;
|
||||
entry->offset_low = (uint16_t)offset;
|
||||
entry->selector = GDT_KERNEL_CODE;
|
||||
entry->flags = flags;
|
||||
entry->offsetHigh = (uint16_t)(offset >> 16);
|
||||
entry->offset_high = (uint16_t)(offset >> 16);
|
||||
}
|
||||
|
||||
int idt_init(void) {
|
||||
|
||||
Reference in New Issue
Block a user