Ignore:
Timestamp:
Jul 4, 2017, 12:05:39 PM (7 years ago)
Author:
max@…
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_init.c

    r137 r138  
    9595        dev->channels = 1;
    9696
     97#if NOTYET
    9798        /*
    9899         * Give 20% of the pins to HWI, 80% to WTI.
     
    100101        dev->param0 = (ioapic_pins * 20) / 100;  /* hwi_nr */
    101102        dev->param1 = ioapic_pins - dev->param0; /* wti_nr */
     103#else
     104        dev->param0 = 1; /* hwi_nr */
     105        dev->param1 = 1; /* wti_nr */
     106#endif
    102107
    103108        /*
     
    421426        }
    422427
    423         /* LAPIC interrupts */
    424         for (i = LAPICVEC_MIN; i < LAPICVEC_MAX; i++) {
    425                 idt_set_seg(&idt[i], (void *)x86_intrs[i - LAPICVEC_MIN], 0,
     428        /* Dynamically configured interrupts */
     429        for (i = DYNVEC_MIN; i < DYNVEC_MAX; i++) {
     430                idt_set_seg(&idt[i], (void *)x86_intrs[i - DYNVEC_MIN], 0,
    426431                    SDT_SYS386IGT, SEL_KPL, GDT_FIXED_SEL(GDT_KCODE_SEL, SEL_KPL));
    427432        }
Note: See TracChangeset for help on using the changeset viewer.