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.