mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
arch/x86_64/intel64: re-enable interrupts before syscall handle
arch/x86_64/intel64: re-enable interrupts before syscall handle
This commit is contained in:
committed by
Alan C. Assis
parent
908ac756ea
commit
eca40ff053
@@ -302,6 +302,15 @@ uint64_t *x86_64_syscall(uint64_t *regs)
|
|||||||
rtcb->xcp.saved_ursp = regs[REG_RSP];
|
rtcb->xcp.saved_ursp = regs[REG_RSP];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Re-enable interrupts if enabled before.
|
||||||
|
* Current task RFLAGS are stored in R11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (regs[REG_R11] & X86_64_RFLAGS_IF)
|
||||||
|
{
|
||||||
|
up_irq_restore(X86_64_RFLAGS_IF);
|
||||||
|
}
|
||||||
|
|
||||||
/* Call syscall function */
|
/* Call syscall function */
|
||||||
|
|
||||||
ret = stub(nbr, arg1, arg2, arg3, arg4, arg5, arg6);
|
ret = stub(nbr, arg1, arg2, arg3, arg4, arg5, arg6);
|
||||||
|
|||||||
Reference in New Issue
Block a user