diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-09-17 04:20:29 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-09-17 04:20:29 +0000 |
commit | 3bee6a5e1f662651eded28070d56096713ae4a9e (patch) | |
tree | fb5647b42b26165689de79b9e5db9b2c068528f8 /sys/arch | |
parent | ed3bc6dd6a57440f298532a12f161265fd3ab545 (diff) |
stuff for ksyms (doesn't quite work yet, tho)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/conf.c | 7 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/locore.s | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c index d5c92df50e6..defdd7db515 100644 --- a/sys/arch/sparc64/sparc64/conf.c +++ b/sys/arch/sparc64/sparc64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.6 2001/09/04 19:14:04 todd Exp $ */ +/* $OpenBSD: conf.c,v 1.7 2001/09/17 04:20:28 jason Exp $ */ /* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */ /* @@ -126,6 +126,9 @@ cdev_decl(pf); cdev_decl(xfs_dev); #endif +#include "ksyms.h" +cdev_decl(ksyms); + struct bdevsw bdevsw[] = { bdev_notdef(), /* 0 */ @@ -243,7 +246,7 @@ struct cdevsw cdevsw[] = cdev_pf_init(NPF,pf), /* 73: packet filter */ cdev_altq_init(NALTQ,altq), /* 74: ALTQ control interface */ cdev_notdef(), /* 75 */ - cdev_notdef(), /* 76 */ + cdev_ksyms_init(NKSYMS,ksyms), /* 76 *: Kernel symbols device */ cdev_notdef(), /* 77 */ cdev_notdef(), /* 78 */ cdev_notdef(), /* 79 */ diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index ffffe27601a..c43a1c1e0f3 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.8 2001/09/10 22:40:21 art Exp $ */ +/* $OpenBSD: locore.s,v 1.9 2001/09/17 04:20:27 jason Exp $ */ /* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */ /* @@ -74,6 +74,7 @@ #undef SCHED_DEBUG #include "assym.h" +#include "ksyms.h" #include <machine/param.h> #include <sparc64/sparc64/intreg.h> #include <sparc64/sparc64/timerreg.h> @@ -5206,7 +5207,7 @@ dostart: wrpr %g0, 13, %pil wrpr %g0, PSTATE_INTR|PSTATE_PEF, %pstate wr %o0, FPRS_FEF, %fprs ! Turn on FPU -#ifdef DDB +#if defined(DDB) || NKSYMS > 0 /* * First, check for DDB arguments. A pointer to an argument * is passed in %o1 who's length is passed in %o2. Our @@ -12256,7 +12257,7 @@ ENTRY(longjmp) .data _ALIGN -#ifdef DDB +#if defined(DDB) || NKSYMS > 0 .globl _C_LABEL(esym) _C_LABEL(esym): POINTER 0 |