summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-09-22 04:30:33 +0000
committerjhb <jhb@FreeBSD.org>2000-09-22 04:30:33 +0000
commit1da56dada3d232d236b16d56f3c4338088aa44d3 (patch)
tree330dfbe1b790cd83e77ed6884d528e5295c5a704 /sys/amd64/include
parentae08381773688952efceda39a26d6a24d6e1a33a (diff)
downloadFreeBSD-src-1da56dada3d232d236b16d56f3c4338088aa44d3.zip
FreeBSD-src-1da56dada3d232d236b16d56f3c4338088aa44d3.tar.gz
Teach MTX_EXIT_RECURSE that the recursion count is a 32-bit integer,
not a 16-bit one.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/mutex.h6
1 files changed, 3 insertions, 3 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; \
OpenPOWER on IntegriCloud