mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Fix a bug with handling of the saved interrupt state for spin mutexes in
the MTX_EXIT_WITH_RECURSION() assembly macro (currently unused). Submitted by: bde
This commit is contained in:
parent
5e8eaa452b
commit
af80d322a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68684
@ -308,8 +308,8 @@ extern char STR_SIEN[];
|
||||
js 9f; \
|
||||
movl %eax,lck+MTX_RECURSE; \
|
||||
jmp 8f; \
|
||||
pushl lck+MTX_SAVEINTR; \
|
||||
9: movl lck+MTX_LOCK,%eax; \
|
||||
9: pushl lck+MTX_SAVEINTR; \
|
||||
movl lck+MTX_LOCK,%eax; \
|
||||
movl $ MTX_UNOWNED,reg; \
|
||||
MPLOCKED \
|
||||
cmpxchgl reg,lck+MTX_LOCK; \
|
||||
|
@ -308,8 +308,8 @@ extern char STR_SIEN[];
|
||||
js 9f; \
|
||||
movl %eax,lck+MTX_RECURSE; \
|
||||
jmp 8f; \
|
||||
pushl lck+MTX_SAVEINTR; \
|
||||
9: movl lck+MTX_LOCK,%eax; \
|
||||
9: pushl lck+MTX_SAVEINTR; \
|
||||
movl lck+MTX_LOCK,%eax; \
|
||||
movl $ MTX_UNOWNED,reg; \
|
||||
MPLOCKED \
|
||||
cmpxchgl reg,lck+MTX_LOCK; \
|
||||
|
Loading…
Reference in New Issue
Block a user