[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 1/2] Add user interrupt handling code for mach pathway

2021-03-29 Thread Damien Zammit
--- device/intr.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/device/intr.c b/device/intr.c index fbb9f495..ac213ecf 100644 --- a/device/intr.c +++ b/device/intr.c @@ -12,6 +12,7 @@ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE O

[PATCH v4: gnumach] - IOAPIC and LAPIC support

2021-03-29 Thread Damien Zammit
Hi, Here are revised patches, fourth iteration including pit macros. Damien

Re: [PATCH 1/2] Add user interrupt handling code for mach pathway

2021-03-29 Thread Samuel Thibault
Getting closer! :D Damien Zammit, le mar. 30 mars 2021 01:23:55 +1100, a ecrit: > + struct intr_list *handler; > + struct intr_list **prev = &user_intr_handlers[id]; > + user_intr_t *e; > + spl_t s; > + > + s = splhigh(); > + > + for (handler = user_intr_handlers[id]; handler; handler = hand

[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 1/2] Add user interrupt handling code for mach pathway

2021-03-29 Thread Damien Zammit
--- device/intr.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/device/intr.c b/device/intr.c index fbb9f495..dfe07ddc 100644 --- a/device/intr.c +++ b/device/intr.c @@ -12,6 +12,7 @@ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE O

[PATCH v3: gnumach] - IOAPIC and LAPIC support

2021-03-29 Thread Damien Zammit
Hi Samuel, I have addressed most of your reviewed comments except: > Do you think we will be able to use lapic along the Linux glue? Untested so far. > Also, it'd be good to also modify & test x86_64/interrupt.S, otherwise > the poor people trying to finish 64bit support will see yet another > o