17 Mar
2025
17 Mar
'25
11:55 p.m.
On Mon Mar 17 23:52:33 2025 +0000, Brendan Shanks wrote:
I'm finally getting back to this...do you mean something like replacing `movq %gs:0x330,%r11` before switching to the kernel stack with `movq 0xb8(%rcx),%rcx`, `movq 0x330(%rcx),%rcx` right before indexing into the syscall table? Overall seems like a good idea, having those where they are currently (right next to where they're used) would be clearer. Yeah, I think so. FWIW, even with two MOVs, should be faster than one MOV from GS indirect.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6866#note_98193