diff options
author | kib <kib@FreeBSD.org> | 2016-07-18 04:33:12 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-07-18 04:33:12 +0000 |
commit | a7198b9b7266044ee24f3a88bf95dc69faff7f3f (patch) | |
tree | 7622e1d1e2965a07dd899f144c4875069e1a74ed /sys/i386 | |
parent | 8bb7cc7915afba21cc65160abdd4f38343521b2e (diff) | |
download | FreeBSD-src-a7198b9b7266044ee24f3a88bf95dc69faff7f3f.zip FreeBSD-src-a7198b9b7266044ee24f3a88bf95dc69faff7f3f.tar.gz |
MFC r302573:
Fill tf_trapno for trap frames created for syscall.
Approved by: re (gjb)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/exception.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index c03cbce..a8f738a 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/exception.s @@ -234,7 +234,7 @@ IDTVEC(lcall_syscall) pushfl /* save eflags */ popl 8(%esp) /* shuffle into tf_eflags */ pushl $7 /* sizeof "lcall 7,0" */ - subl $4,%esp /* skip over tf_trapno */ + pushl $0 /* tf_trapno */ pushal pushl $0 movw %ds,(%esp) @@ -263,7 +263,7 @@ IDTVEC(lcall_syscall) SUPERALIGN_TEXT IDTVEC(int0x80_syscall) pushl $2 /* sizeof "int 0x80" */ - subl $4,%esp /* skip over tf_trapno */ + pushl $0 /* tf_trapno */ pushal pushl $0 movw %ds,(%esp) |