diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-11 22:03:18 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-11 22:03:18 +0000 |
commit | 96f8fc3a1d675c09e91aeaaef78a515277d9822f (patch) | |
tree | 2857a4d0eb4d1fecfeca97d07c670fe3fb30a4c7 /sys | |
parent | 3f877255f1eba124bcbe73f339b0ebe91f327162 (diff) |
Give systrace and xfs a chance to work.
ok drahn@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm/arm/conf.c | 38 | ||||
-rw-r--r-- | sys/arch/arm/arm/syscall.c | 10 |
2 files changed, 18 insertions, 30 deletions
diff --git a/sys/arch/arm/arm/conf.c b/sys/arch/arm/arm/conf.c index f1518be6ae4..d48d21e148d 100644 --- a/sys/arch/arm/arm/conf.c +++ b/sys/arch/arm/arm/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.2 2004/02/10 01:31:21 millert Exp $ */ +/* $OpenBSD: conf.c,v 1.3 2004/02/11 22:03:17 miod Exp $ */ /* $NetBSD: conf.c,v 1.10 2002/04/19 01:04:38 wiz Exp $ */ /* @@ -87,23 +87,6 @@ bdev_decl(wd); bdev_decl(sw); -/* - * ISDN devices - */ -#ifdef CONF_HAVE_ISDN -#include "isdn.h" -#include "isdnctl.h" -#include "isdntrc.h" -#include "isdnbchan.h" -#include "isdntel.h" -#else -#define NISDN 0 -#define NISDNCTL 0 -#define NISDNTRC 0 -#define NISDNBCHAN 0 -#define NISDNTEL 0 -#endif - #ifdef CONF_HAVE_PCI #include "iop.h" #include "pci.h" @@ -265,16 +248,17 @@ struct bdevsw bdevsw[] = { }; /* Character devices */ -cdev_decl(isdn); -cdev_decl(isdnctl); -cdev_decl(isdntrc); -cdev_decl(isdnbchan); -cdev_decl(isdntel); #define ptstty ptytty #define ptsioctl ptyioctl #define ptctty ptytty #define ptcioctl ptyioctl +#ifdef XFS +#include <xfs/nxfs.h> +cdev_decl(xfs_dev); +#endif +#include "systrace.h" + struct cdevsw cdevsw[] = { cdev_cn_init(1,cn), /* 0: virtual console */ cdev_ctty_init(1,ctty), /* 1: controlling terminal */ @@ -322,12 +306,16 @@ struct cdevsw cdevsw[] = { cdev_lkm_dummy(), /* 43: reserved */ cdev_lkm_dummy(), /* 44: reserved */ cdev_lkm_dummy(), /* 45: reserved */ - cdev_pf_init(NPF,pf), /* 39: packet filter */ + cdev_pf_init(NPF,pf), /* 46: packet filter */ cdev_lkm_dummy(), /* 47: reserved */ cdev_lkm_dummy(), /* 48: reserved */ cdev_lkm_dummy(), /* 49: reserved */ - cdev_lkm_dummy(), /* 50: reserved */ + cdev_systrace_init(NSYSTRACE,systrace), /* 50: system call tracing */ +#ifdef XFS + cdev_xfs_init(NXFS,xfs_dev), /* 51: xfs communication device */ +#else cdev_notdef(), /* 51: reserved */ +#endif cdev_notdef(), /* 52: reserved */ cdev_notdef(), /* 53: reserved */ cdev_tty_init(NFCOM,fcom), /* 54: FOOTBRIDGE console */ diff --git a/sys/arch/arm/arm/syscall.c b/sys/arch/arm/arm/syscall.c index 57c3f1a7756..688c0dd5329 100644 --- a/sys/arch/arm/arm/syscall.c +++ b/sys/arch/arm/arm/syscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.c,v 1.1 2004/02/01 05:09:48 drahn Exp $ */ +/* $OpenBSD: syscall.c,v 1.2 2004/02/11 22:03:17 miod Exp $ */ /* $NetBSD: syscall.c,v 1.24 2003/11/14 19:03:17 scw Exp $ */ /*- @@ -90,9 +90,9 @@ #ifdef KTRACE #include <sys/ktrace.h> #endif -#ifdef SYSTRACE -#include <sys/systrace.h> -#endif + +#include "systrace.h" +#include <dev/systrace.h> #include <uvm/uvm_extern.h> @@ -200,7 +200,7 @@ syscall_intern(struct proc *p) return; } #endif -#ifdef SYSTRACE +#if NSYSTRACE > 0 if (p->p_flag & P_SYSTRACE) { p->p_md.md_syscall = syscall_fancy; return; |