Re: [PATCH v5 2/2 gnumach] percpu area using gs segment

2023-09-24 Thread Samuel Thibault
Damien Zammit, le dim. 24 sept. 2023 10:35:10 +, a ecrit: > Untested on 64 bit It will just not work :) 64bit needs to set an fsgs base instead. Samuel

Re: [PATCH v5 2/2 gnumach] percpu area using gs segment

2023-09-24 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le dim. 24 sept. 2023 10:35:10 +, a ecrit: > 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 a

[PATCH v5 2/2 gnumach] percpu area using gs segment

2023-09-24 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. Untested on 64 bit and work remains to use other percpu arrays. TESTED: (NCPUS=8)