pc64: set error code and trap fields in Ureg* on syscalls
This commit is contained in:
parent
48c5da7a64
commit
1cfa405d0a
1 changed files with 3 additions and 1 deletions
|
@ -722,8 +722,10 @@ TEXT syscallentry(SB), 1, $-4
|
|||
PUSHQ R11 /* old flags */
|
||||
PUSHQ $UESEL /* old code segment */
|
||||
PUSHQ CX /* old ip */
|
||||
PUSHQ $0 /* error code */
|
||||
PUSHQ $64 /* trap number (VectorSYSCALL) */
|
||||
|
||||
SUBQ $(8 + 23*8-5*8), SP /* arg + sizeof(Ureg)-pushed */
|
||||
SUBQ $(8 + 23*8-7*8), SP /* arg + sizeof(Ureg)-pushed */
|
||||
|
||||
MOVQ RMACH, (15*8)(SP) /* old r15 */
|
||||
MOVQ RUSER, (14*8)(SP) /* old r14 */
|
||||
|
|
Loading…
Reference in a new issue