X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/717b28abfbfdfb49d1c676b75661dffec3e60911..e1ac8bd99e01882b7dba40efb83941a1b60f024d:/base/dispatch-x86ish.S diff --git a/base/dispatch-x86ish.S b/base/dispatch-x86ish.S index 9510f969..8a4c7b2e 100644 --- a/base/dispatch-x86ish.S +++ b/base/dispatch-x86ish.S @@ -164,8 +164,9 @@ FUNC(dispatch_x86ish_xgetbv) #if CPUFAM_X86 # define Z_OUT edi - mov edi, [esp + 4] - mov ecx, [esp + 8] + pushreg edi + mov edi, [esp + 8] + mov ecx, [esp + 12] #endif #if CPUFAM_AMD64 && ABI_SYSV # define Z_OUT rdi @@ -182,6 +183,9 @@ FUNC(dispatch_x86ish_xgetbv) mov [Z_OUT + 0], eax mov [Z_OUT + 4], edx +#if CPUFAM_X86 + popreg edi +#endif ret #undef Z_OUT