diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h index 11e752df488f..a2285cd3e9c7 100644 --- a/sys/amd64/include/mutex.h +++ b/sys/amd64/include/mutex.h @@ -775,10 +775,10 @@ _mtx_exit(struct mtx *mtxp, int type, const char *file, int line) 8: #define MTX_EXIT_WITH_RECURSION(lck,reg) \ - movw lck+MTX_RECURSECNT,%ax; \ - decw %ax; \ + movl lck+MTX_RECURSECNT,%eax; \ + decl %eax; \ js 9f; \ - movw %ax,lck+MTX_RECURSECNT; \ + movl %eax,lck+MTX_RECURSECNT; \ jmp 8f; \ 9: movl lck+MTX_LOCK,%eax; \ movl $ MTX_UNOWNED,reg; \ diff --git a/sys/i386/include/mutex.h b/sys/i386/include/mutex.h index 11e752df488f..a2285cd3e9c7 100644 --- a/sys/i386/include/mutex.h +++ b/sys/i386/include/mutex.h @@ -775,10 +775,10 @@ _mtx_exit(struct mtx *mtxp, int type, const char *file, int line) 8: #define MTX_EXIT_WITH_RECURSION(lck,reg) \ - movw lck+MTX_RECURSECNT,%ax; \ - decw %ax; \ + movl lck+MTX_RECURSECNT,%eax; \ + decl %eax; \ js 9f; \ - movw %ax,lck+MTX_RECURSECNT; \ + movl %eax,lck+MTX_RECURSECNT; \ jmp 8f; \ 9: movl lck+MTX_LOCK,%eax; \ movl $ MTX_UNOWNED,reg; \