mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fix savecore so that it works on alphas
Reviewed by: Doug Rabson <dfr@nlsystems.com>
This commit is contained in:
parent
19fa470d92
commit
e22d00060d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44688
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue