[PATCH] Use -O2 -g by default when compiling

2023-01-21 Thread Flavio Cruz
After d5e5dd3401ea0d0475aa830c2171be5b8a72f4fa we can configure and make gnumach without glibc, however it no longer used -O2 -g in CFLAGS by default. This reverts that behavior. --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 8f10b5d5..36

[PATCH 3/4] i386: Fix lapic and ioapic for smp

2023-01-21 Thread Damien Zammit
--- i386/i386/apic.c | 87 ++ i386/i386/apic.h | 110 +-- i386/i386/smp.c | 89 +- i386/i386/smp.h | 7 +++ i386/i386at/ioapic.c | 103 -

[PATCH 4/4] Add cpu_number and cpuboot

2023-01-21 Thread Damien Zammit
--- i386/i386/cpu_number.c | 37 ++ i386/i386/cpuboot.S| 164 + 2 files changed, 201 insertions(+) create mode 100644 i386/i386/cpu_number.c create mode 100644 i386/i386/cpuboot.S diff --git a/i386/i386/cpu_number.c b/i386/i386/cpu_number.c n

[PATCH 2/4] i386: Add AP variants of descriptor tables

2023-01-21 Thread Damien Zammit
--- i386/i386/apic.c| 6 ++ i386/i386/gdt.c | 47 ++--- i386/i386/gdt.h | 1 + i386/i386/i386asm.sym | 1 + i386/i386/idt-gen.h | 4 ++-- i386/i386/idt.c | 25 -- i386/i386/ktss.c| 30

[PATCH 0/4] gnumach smp preparation

2023-01-21 Thread Damien Zammit
This patch series has been tested on each commit to not break PIC version without SMP, but refactors some of the SMP code to prepare for another patch series that will add SMP support. Damien

[PATCH 1/4] i386/apic: Add ifdefs for APIC for mask/unmask irqs

2023-01-21 Thread Damien Zammit
This prepares for --enable-ncpus=2 with --disable-apic option --- i386/i386/apic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i386/i386/apic.h b/i386/i386/apic.h index 10c83c01..0bb1bd73 100644 --- a/i386/i386/apic.h +++ b/i386/i386/apic.h @@ -207,6 +207,7 @@ extern volatile ApicLocalU