diff options
author | jhb <jhb@FreeBSD.org> | 2000-09-22 04:30:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-09-22 04:30:33 +0000 |
commit | 1da56dada3d232d236b16d56f3c4338088aa44d3 (patch) | |
tree | 330dfbe1b790cd83e77ed6884d528e5295c5a704 /sys/i386/include | |
parent | ae08381773688952efceda39a26d6a24d6e1a33a (diff) | |
download | FreeBSD-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/i386/include')
-rw-r--r-- | sys/i386/include/mutex.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; \ |