Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/ia64 Initialize md_syscall in syscall_intern()...



details:   https://anonhg.NetBSD.org/src/rev/2d4c09ea968a
branches:  trunk
changeset: 751050:2d4c09ea968a
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sat Jan 23 06:20:31 2010 +0000

description:
Initialize md_syscall in syscall_intern().  But the md_syscall of ia64 not
support yet.
And remove white-space.

diffstat:

 sys/arch/ia64/ia64/syscall.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 0a0a34029049 -r 2d4c09ea968a sys/arch/ia64/ia64/syscall.c
--- a/sys/arch/ia64/ia64/syscall.c      Sat Jan 23 06:13:20 2010 +0000
+++ b/sys/arch/ia64/ia64/syscall.c      Sat Jan 23 06:20:31 2010 +0000
@@ -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 <sys/cdefs.h>                 /* 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 <sys/param.h>
 #include <sys/systm.h>
@@ -47,8 +47,11 @@
 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;
 }
 
 /*



Home | Main Index | Thread Index | Old Index