diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-08-09 22:22:51 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-08-09 22:22:51 +0000 |
commit | 20c0edddcdd753cb445a52d53dc2b686e36f6be0 (patch) | |
tree | cfd655305ad1621dcc465580e0b20a194892cc9c | |
parent | 28c380fa6386a640646a21bf5dd3cd0529f4963f (diff) |
mips/sgi uses same symbol table style setup as sparc64
OK mickey@
-rw-r--r-- | sys/ddb/db_sym.c | 6 | ||||
-rw-r--r-- | sys/dev/ksyms.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 9f659517d57..a9002a1f41a 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_sym.c,v 1.28 2002/05/16 13:01:41 art Exp $ */ +/* $OpenBSD: db_sym.c,v 1.29 2004/08/09 22:22:50 pefo Exp $ */ /* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */ /* @@ -127,7 +127,7 @@ ddb_init() const db_symformat_t **symf; const char *name = "bsd"; extern char *esym; -#ifdef __sparc64__ +#if defined(__sparc64__) || defined(__mips__) extern char *ssym; #else extern long end; @@ -135,7 +135,7 @@ ddb_init() char *xssym, *xesym; xesym = esym; -#ifdef __sparc64__ +#if defined(__sparc64__) || defined(__mips__) xssym = ssym; #else xssym = (char *)&end; diff --git a/sys/dev/ksyms.c b/sys/dev/ksyms.c index 6ba2895cb08..954e4b4a2d1 100644 --- a/sys/dev/ksyms.c +++ b/sys/dev/ksyms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksyms.c,v 1.15 2004/01/09 21:32:23 brad Exp $ */ +/* $OpenBSD: ksyms.c,v 1.16 2004/08/09 22:22:50 pefo Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2001 Artur Grabowski <art@openbsd.org> @@ -41,7 +41,7 @@ #include <machine/cpu.h> extern char *esym; /* end of symbol table */ -#ifdef __sparc64__ +#if defined(__sparc64__) || defined(__mips__) extern char *ssym; /* end of kernel */ #else extern long end; /* end of kernel */ @@ -64,7 +64,7 @@ ksymsattach(num) int num; { -#ifdef __sparc64__ +#if defined(__sparc64__) || defined(__mips__) if (esym <= ssym) { printf("/dev/ksyms: Symbol table not valid.\n"); return; @@ -78,7 +78,7 @@ ksymsattach(num) #ifdef _NLIST_DO_ELF do { -#ifdef __sparc64__ +#if defined(__sparc64__) || defined(__mips__) caddr_t symtab = ssym; #else caddr_t symtab = (caddr_t)&end; |