mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Stop using the setcontext() syscall to restore an async context.
Instead use the break instruction with an immediate specially created for us.
This commit is contained in:
parent
fe4723c884
commit
492eea0dcd
2 changed files with 10 additions and 10 deletions
|
|
@ -339,13 +339,13 @@ ENTRY(_ia64_save_context, 1)
|
|||
END(_ia64_save_context)
|
||||
|
||||
/*
|
||||
* void _ia64_break_setcontext(ucontext_t *ucp);
|
||||
* void _ia64_break_setcontext(mcontext_t *mc);
|
||||
*/
|
||||
ENTRY(_ia64_break_setcontext, 1)
|
||||
{ .mib
|
||||
mov r15=SYS_setcontext
|
||||
break 0x100000
|
||||
br.ret.sptk rp
|
||||
{ .mmi
|
||||
mov r8=r32
|
||||
break 0x180000
|
||||
nop 0
|
||||
;;
|
||||
}
|
||||
END(_ia64_break_setcontext)
|
||||
|
|
|
|||
|
|
@ -339,13 +339,13 @@ ENTRY(_ia64_save_context, 1)
|
|||
END(_ia64_save_context)
|
||||
|
||||
/*
|
||||
* void _ia64_break_setcontext(ucontext_t *ucp);
|
||||
* void _ia64_break_setcontext(mcontext_t *mc);
|
||||
*/
|
||||
ENTRY(_ia64_break_setcontext, 1)
|
||||
{ .mib
|
||||
mov r15=SYS_setcontext
|
||||
break 0x100000
|
||||
br.ret.sptk rp
|
||||
{ .mmi
|
||||
mov r8=r32
|
||||
break 0x180000
|
||||
nop 0
|
||||
;;
|
||||
}
|
||||
END(_ia64_break_setcontext)
|
||||
|
|
|
|||
Loading…
Reference in a new issue