Commit f18249fa authored by Mathieu Maret's avatar Mathieu Maret

Correct IDT address computation

And I'm suppose to be graduate for that...
parent 9cd70a70
......@@ -53,8 +53,8 @@ int idt_set_handler(int index, unsigned int addr, int priviledge)
idte = idt + index;
if (addr != (unsigned int)NULL) {
idte->offset_low = addr && 0xffff;
idte->offset_high = (addr >> 16) && 0xffff;
idte->offset_low = addr & 0xffff;
idte->offset_high = (addr >> 16) & 0xffff;
idte->dpl = priviledge;
idte->present = 1;
} else {
......
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 to comment