summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/include/mutex.h6
-rw-r--r--sys/i386/include/mutex.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index 11e752d..a2285cd 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 11e752d..a2285cd 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; \
OpenPOWER on IntegriCloud