From 7b98bb2b0bd969c6da1017378982fb2bf16cc6bf Mon Sep 17 00:00:00 2001 From: manu Date: Thu, 1 Dec 2005 14:19:22 +0000 Subject: [PATCH] Linux does not use retval[1] --- sys/arch/amd64/amd64/syscall.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/amd64/syscall.c b/sys/arch/amd64/amd64/syscall.c index 657550a993d1..6b5d6fcd6348 100644 --- a/sys/arch/amd64/amd64/syscall.c +++ b/sys/arch/amd64/amd64/syscall.c @@ -1,4 +1,4 @@ -/* $NetBSD: syscall.c,v 1.12 2005/11/13 00:14:57 riz Exp $ */ +/* $NetBSD: syscall.c,v 1.13 2005/12/01 14:19:22 manu Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.12 2005/11/13 00:14:57 riz Exp $"); +__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.13 2005/12/01 14:19:22 manu Exp $"); #include "opt_syscall_debug.h" #include "opt_ktrace.h" @@ -196,7 +196,9 @@ syscall_plain(struct trapframe *frame) switch (error) { case 0: frame->tf_rax = rval[0]; +#ifndef COMPAT_LINUX frame->tf_rdx = rval[1]; +#endif frame->tf_rflags &= ~PSL_C; /* carry bit */ break; case ERESTART: @@ -302,7 +304,9 @@ out: switch (error) { case 0: frame->tf_rax = rval[0]; +#ifndef COMPAT_LINUX frame->tf_rdx = rval[1]; +#endif frame->tf_rflags &= ~PSL_C; /* carry bit */ break; case ERESTART: