[PATCH] hurd_types.defs: redefine io_statbuf_t, timespec_t and fsys_statfsbuf_t as true structs

2022-11-11 Thread Flavio Cruz
time_t and long are defined as uint32_t or uint64_t depending on the arch. --- hurd/hurd_types.defs | 91 +--- 1 file changed, 86 insertions(+), 5 deletions(-) diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs index 95399289..84e1c0ff 100644 --- a/hu

[PATCH 4/4] i386: Refactor int stacks to be per cpu for SMP

2022-11-11 Thread Damien Zammit
--- i386/Makefrag.am | 6 + i386/i386/cpu_number.h | 31 +++- i386/i386/cswitch.S | 6 +- i386/i386/locore.S | 31 ++-- i386/i386/mp_desc.c | 281 ++- i386/i386/mp_desc.h | 9 +- i386

[PATCH 3/4] Add cpu_number and cpuboot

2022-11-11 Thread Damien Zammit
--- i386/i386/cpu_number.c | 37 ++ i386/i386/cpuboot.S| 164 + i386/i386at/boothdr.S | 2 +- 3 files changed, 202 insertions(+), 1 deletion(-) create mode 100644 i386/i386/cpu_number.c create mode 100644 i386/i386/cpuboot.S diff --git a/i

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

2022-11-11 Thread Damien Zammit
--- i386/i386/apic.c | 85 + i386/i386/apic.h | 110 +-- i386/i386/smp.c | 89 +- i386/i386/smp.h | 7 +++ i386/i386at/ioapic.c | 103 --

[PATCH v2 0/4 - gnumach] SMP almost working!

2022-11-11 Thread Damien Zammit
Hi, This patchset applies to master and has been tested not to break --{enable,disable}-kdb --disable-pae --disable-apic while getting closer to a working SMP version. I did not test all patches in isolation, only the combination of 4. In particular, it adds separate interrupt stacks per cpu, de

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

2022-11-11 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

Re: [PATCH] default_pager_types.defs: define existing struct types as true structs

2022-11-11 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le ven. 11 nov. 2022 00:36:41 -0500, a ecrit: > --- > include/mach/default_pager_types.defs | 17 + > 1 file changed, 13 insertions(+), 4 deletions(-) > > diff --git a/include/mach/default_pager_types.defs > b/include/mach/default_pager_types.defs >

Re: [PATCH] Define mig type flock_t as a struct instead of array of ints

2022-11-11 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le jeu. 10 nov. 2022 23:42:33 -0500, a ecrit: > --- > hurd/hurd_types.defs | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs > index 5b9dd85a..95399289 100644 > --- a/hurd/hurd_types.defs > ++