Re: [RFC PATCH gnumach] percpu area using gs segment

2023-08-27 Thread Luca
Hi, Il 26/08/23 08:48, Damien Zammit ha scritto: diff --git a/i386/i386/cpu_number.c b/i386/i386/cpu_number.c index ef19e11f..241015b5 100644 --- a/i386/i386/cpu_number.c +++ b/i386/i386/cpu_number.c @@ -20,11 +20,17 @@ #include #include #include +#include #include #if NCPUS >

[RFC PATCH gnumach] percpu area using gs segment

2023-08-25 Thread Damien Zammit
This speeds up smp again, by storing the struct processor in a percpu area and avoiding an expensive cpu_number every call of current_processor(), as well as getting the cpu_number by an offset into the percpu area. Needs work for 64 bit and replacing other percpu arrays. --- i386/Makefrag.am