On Tue Nov 21 20:39:43 2023 +0000, Alexandre Julliard wrote:
old_sp == cfa is the default, I don't think it's useful to specify it explicitly. TBH I'm not sure I see a reason to do it on x86 either.
The reason is that there are cfi rules for it before we reach the kernel stack switch, and we need to override them again or it will fail to restore sp on unwind and crash. I think it could also perhaps be done through `.cfi_restore %rsp`.