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 /sys/dev | |
parent | 28c380fa6386a640646a21bf5dd3cd0529f4963f (diff) |
mips/sgi uses same symbol table style setup as sparc64
OK mickey@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ksyms.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |