summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>1999-03-12 14:46:00 +0000
committergallatin <gallatin@FreeBSD.org>1999-03-12 14:46:00 +0000
commit8963bb48a7b400d3c388861445b62127dab884bd (patch)
tree696d2c8951bbc5004feb3927f7d4275f562dd5c3 /sbin
parent95280774579161f697f9a897b8dfe78481319ba2 (diff)
downloadFreeBSD-src-8963bb48a7b400d3c388861445b62127dab884bd.zip
FreeBSD-src-8963bb48a7b400d3c388861445b62127dab884bd.tar.gz
Fix savecore so that it works on alphas
Reviewed by: Doug Rabson <dfr@nlsystems.com>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/savecore/savecore.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index d6e4591..fa75e42 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: savecore.c,v 1.21 1998/07/28 06:38:57 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -65,7 +65,13 @@ static const char rcsid[] =
#include <unistd.h>
#include "zopen.h"
+#ifdef __alpha__
+#define ok(number) ALPHA_K0SEG_TO_PHYS(number)
+#endif
+
+#ifdef __i386__
#define ok(number) ((number) - KERNBASE)
+#endif
struct nlist current_nl[] = { /* Namelist for currently running system. */
#define X_DUMPDEV 0
OpenPOWER on IntegriCloud