Teach MTX_EXIT_RECURSE that the recursion count is a 32-bit integer,

not a 16-bit one.
This commit is contained in:
jhb 2000-09-22 04:30:33 +00:00
parent ae08381773
commit 1da56dada3
2 changed files with 6 additions and 6 deletions

View File

@ -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; \

View File

@ -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; \