[PATCH gnumach] smp: Create AP processor set and put all APs inside it

2024-02-10 Thread Damien Zammit
This has the effect of running with one cpu only with smp, but has the ability to enable APs in userspace with the right processor set RPCs. --- ddb/db_print.c | 4 +++- kern/machine.c | 7 ++- kern/processor.c | 30 +++--- kern/processor.h | 1 + 4 files

[PATCH gnumach] Enable MACH_HOST and fix non-addressable bitfields

2024-02-10 Thread Damien Zammit
--- configfrag.ac | 2 +- kern/task.h | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configfrag.ac b/configfrag.ac index f9285c9d..d059c7b9 100644 --- a/configfrag.ac +++ b/configfrag.ac @@ -71,7 +71,7 @@ AC_DEFINE([MACH_DEBUG], [1], [MACH_DEBUG])

[PATCH gnumach] smp: Fix parenthesis around logic expression value

2024-02-10 Thread Damien Zammit
--- kern/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kern/thread.c b/kern/thread.c index 38287581..de9d1982 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -1921,7 +1921,7 @@ Restart: * Reset policy and priorities if needed. */ #if

[PATCH gnumach] smp: Fix unable to enter kdb during boot

2024-02-10 Thread Damien Zammit
--- i386/i386at/kd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index 984d62e3..486dea67 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -458,6 +458,7 @@ kdopen( kdinit(); } tp->t_state |= TS_CARR_ON; +

[PATCH gnumach] smp: Rearrange IPI sending mechanism

2024-02-10 Thread Damien Zammit
Wait for ICR then just assert the signal. No de-assert. --- i386/i386/smp.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/i386/i386/smp.c b/i386/i386/smp.c index 05e9de67..a758eea3 100644 --- a/i386/i386/smp.c +++ b/i386/i386/smp.c @@ -54,17 +54,11 @@ static void

Re: [PATCH gnumach] smp: Fix compile error with missing apboot_addr

2024-02-10 Thread Almudena Garcia
Fixed. Thanks!! El sáb, 10 feb 2024 a las 16:35, Samuel Thibault () escribió: > That was because of bogus #ifdefs, now fixed. > > Samuel > > Almudena Garcia, le sam. 10 févr. 2024 16:22:47 +0100, a ecrit: > > The error continues when I compile for a only cpu. > > My compile commands are > > > >

Re: [PATCH gnumach] smp: Fix compile error with missing apboot_addr

2024-02-10 Thread Samuel Thibault
That was because of bogus #ifdefs, now fixed. Samuel Almudena Garcia, le sam. 10 févr. 2024 16:22:47 +0100, a ecrit: > The error continues when I compile for a only cpu. > My compile commands are > > ./configure --host=i686-gnu CC='gcc -m32' LD='ld -melf_i386' --enable-apic > --enable-kdb

Re: [PATCH gnumach] smp: Fix compile error with missing apboot_addr

2024-02-10 Thread Almudena Garcia
The error continues when I compile for a only cpu. My compile commands are ./configure --host=i686-gnu CC='gcc -m32' LD='ld -melf_i386' --enable-apic --enable-kdb --enable-ncpus=1 --disable-linux-groups make gnumach.gz I got this error if test -s gnumach-undef-bad; \ then cat gnumach-undef-bad;