From bd39102ecbcf57513d25b44e17dece55f6980165 Mon Sep 17 00:00:00 2001 From: kiyohara Date: Sat, 23 Jan 2010 06:20:31 +0000 Subject: [PATCH] Initialize md_syscall in syscall_intern(). But the md_syscall of ia64 not support yet. And remove white-space. --- sys/arch/ia64/ia64/syscall.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sys/arch/ia64/ia64/syscall.c b/sys/arch/ia64/ia64/syscall.c index ffd22bc532b4..f5c9b8349bc0 100644 --- a/sys/arch/ia64/ia64/syscall.c +++ b/sys/arch/ia64/ia64/syscall.c @@ -1,11 +1,11 @@ -/* $NetBSD: syscall.c,v 1.4 2009/07/20 04:41:37 kiyohara Exp $ */ +/* $NetBSD: syscall.c,v 1.5 2010/01/23 06:20:31 kiyohara Exp $ */ /* * Copyright (c) 2006 The NetBSD Foundation, Inc. * All rights reserved. * * - * Author: + * Author: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,7 +32,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.4 2009/07/20 04:41:37 kiyohara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.5 2010/01/23 06:20:31 kiyohara Exp $"); #include #include @@ -47,8 +47,11 @@ void syscall_fancy(struct lwp *, u_int64_t, struct trapframe *); void syscall_intern(struct proc *p) { -printf("%s: not yet\n", __func__); - return; + + if (trace_is_enabled(p)) + p->p_md.md_syscall = syscall_fancy; + else + p->p_md.md_syscall = syscall_plain; } /*