Re: [PATCH 2/2] ioapic support switchable back to pic

2021-04-03 Thread Samuel Thibault
Damien Zammit, le mar. 30 mars 2021 13:58:30 +1100, a ecrit: > +val = (inb(PITAUX_PORT) & 0xfd) | 0x1; Rather use val &= ~PITAUX_OUT2; val |= PITAUX_GATE2; > +outb(PITAUX_PORT, val); > +outb(PITCTL_PORT, 0xb2); Use PIT_C2|PIT_LOADMODE|PIT_RATEMODE. > +val = CLKNUM / hz; > +l

Re: [PATCH 2/2] ioapic support switchable back to pic

2021-04-03 Thread Samuel Thibault
Damien Zammit, le mar. 30 mars 2021 13:58:30 +1100, a ecrit: > +AC_ARG_ENABLE([apic], > + AS_HELP_STRING([--enable-apic], [LAPIC/IOAPIC support (ix86-only); enabled > by default])) I don't think we want to enable it by default for now :) (that will allow to just commit the support and be done wi

[PATCH 2/2] ioapic support switchable back to pic

2021-03-29 Thread Damien Zammit
Use --enable-ncpus=x where x > 1 for SMP+APIC support. Use --enable-apic=no for no SMP and old PIC support. --- i386/Makefrag.am | 13 +- i386/configfrag.ac | 12 + i386/i386/apic.h | 4 +- i386/i386/fpu.c | 2 +- i386/i386/irq.

[PATCH 2/2] ioapic support switchable back to pic

2021-03-29 Thread Damien Zammit
Use --enable-ncpus=x where x > 1 for SMP+APIC support. Use --enable-apic=no for no SMP and old PIC support. --- i386/Makefrag.am | 13 +- i386/configfrag.ac | 12 + i386/i386/apic.h | 4 +- i386/i386/fpu.c | 2 +- i386/i386/irq.