Correct the implementation of dtrace_interrupt_disable/enable.
Pointed out by: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5
This commit is contained in:
parent
25b019ebdb
commit
0b051108e0
@ -57,7 +57,8 @@ END(dtrace_membar_consumer)
|
||||
dtrace_icookie_t dtrace_interrupt_disable(void)
|
||||
*/
|
||||
ENTRY(dtrace_interrupt_disable)
|
||||
csrci sstatus, 1
|
||||
csrrci a0, sstatus, SSTATUS_IE
|
||||
andi a0, a0, SSTATUS_IE
|
||||
RET
|
||||
END(dtrace_interrupt_disable)
|
||||
|
||||
@ -65,7 +66,7 @@ END(dtrace_interrupt_disable)
|
||||
void dtrace_interrupt_enable(dtrace_icookie_t cookie)
|
||||
*/
|
||||
ENTRY(dtrace_interrupt_enable)
|
||||
csrsi sstatus, 1
|
||||
csrs sstatus, a0
|
||||
RET
|
||||
END(dtrace_interrupt_enable)
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user