- Timestamp:
- Jul 31, 2017, 10:16:33 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_init.c
r283 r292 555 555 struct idt_seg *idt; 556 556 size_t i; 557 int ist; 557 558 558 559 memset(&idt_bitmap, 0, sizeof(idt_bitmap)); … … 567 568 /* General exceptions */ 568 569 for (i = CPUVEC_MIN; i < CPUVEC_MAX; i++) { 570 if (i == 2) { /* NMI */ 571 ist = 3; 572 } else if (i == 8) { /* Double Fault */ 573 ist = 2; 574 } else { 575 ist = 0; 576 } 569 577 idt_set_seg(&idt[i], (void *)x86_traps[i - CPUVEC_MIN], 0, 570 578 SDT_SYS386IGT, SEL_KPL, GDT_FIXED_SEL(GDT_KCODE_SEL, SEL_KPL)); 579 571 580 idt_bitmap.busy[i] = true; 572 581 }
Note: See TracChangeset
for help on using the changeset viewer.