Make this compile with TRAPDEBUG enabled.

Pointed out by Holm Tiffe.
This commit is contained in:
martin 2013-01-15 10:18:38 +00:00
parent 7b77c34d39
commit 5cd4dadf69
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscall.c,v 1.21 2012/02/19 21:06:33 rmind Exp $ */
/* $NetBSD: syscall.c,v 1.22 2013/01/15 10:18:38 martin Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -33,7 +33,7 @@
/* All bugs are subject to removal without further notice */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.21 2012/02/19 21:06:33 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.22 2013/01/15 10:18:38 martin Exp $");
#include "opt_multiprocessor.h"
@ -77,7 +77,7 @@ syscall(struct trapframe *tf)
TDB(("trap syscall %s pc %lx, psl %lx, sp %lx, pid %d, frame %p\n",
syscallnames[tf->tf_code], tf->tf_pc, tf->tf_psl,tf->tf_sp,
p->p_pid,frame));
p->p_pid,tf));
curcpu()->ci_data.cpu_nsyscall++;
@ -111,7 +111,7 @@ syscall(struct trapframe *tf)
TDB(("return %s pc %lx, psl %lx, sp %lx, pid %d, err %d r0 %d, r1 %d, "
"tf %p\n", syscallnames[tf->tf_code], tf->tf_pc, tf->tf_psl,
tf->tf_sp, p->p_pid, error, rval[0], rval[1], exptr));
tf->tf_sp, p->p_pid, error, rval[0], rval[1], tf));
bad:
switch (error) {
case 0: