Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86_64/x86_64 Don't forget to put the instruction s...



details:   https://anonhg.NetBSD.org/src/rev/6c609e919128
branches:  trunk
changeset: 532337:6c609e919128
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Jun 05 14:59:37 2002 +0000

description:
Don't forget to put the instruction size in tf_err on system call
entry, for the sake of syscall restart.

diffstat:

 sys/arch/x86_64/x86_64/vector.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ce14954148df -r 6c609e919128 sys/arch/x86_64/x86_64/vector.S
--- a/sys/arch/x86_64/x86_64/vector.S   Wed Jun 05 14:39:26 2002 +0000
+++ b/sys/arch/x86_64/x86_64/vector.S   Wed Jun 05 14:59:37 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vector.S,v 1.5 2002/06/04 11:14:21 fvdl Exp $  */
+/*     $NetBSD: vector.S,v 1.6 2002/06/05 14:59:37 fvdl Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -261,7 +261,7 @@
        movq    %r11, TF_RFLAGS(%rsp)   /* old rflags from syscall insn */
        movq    $(LSEL(LUCODE_SEL, SEL_UPL)), TF_CS(%rsp)
        movq    %rcx,TF_RIP(%rsp)
-       movq    $0,TF_ERR(%rsp)
+       movq    $2,TF_ERR(%rsp)
        movq    $T_ASTFLT, TF_TRAPNO(%rsp)
 
        movq    _C_LABEL(curproc)(%rip),%r15



Home | Main Index | Thread Index | Old Index