If _LP64, set MID_MACHINE to MID_SPARC64, else MID_SPARC. This allows us
to uniquely identify ILP32 vs. LP64 core files, and prevents an LP64 kernel from incorrectly choosing emul_netbsd when it should choose emul_sparc32.
This commit is contained in:
parent
7d3df134d6
commit
f7a4380174
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: param.h,v 1.6 1998/09/09 02:56:38 eeh Exp $ */
|
||||
/* $NetBSD: param.h,v 1.7 1998/09/09 11:01:38 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -53,11 +53,12 @@
|
|||
#ifdef _LP64
|
||||
#define _MACHINE_ARCH sparc64
|
||||
#define MACHINE_ARCH "sparc64"
|
||||
#define MID_MACHINE MID_SPARC64
|
||||
#else
|
||||
#define _MACHINE_ARCH sparc
|
||||
#define MACHINE_ARCH "sparc"
|
||||
#endif
|
||||
#define MID_MACHINE MID_SPARC
|
||||
#endif
|
||||
|
||||
#ifdef _KERNEL /* XXX */
|
||||
#ifndef _LOCORE /* XXX */
|
||||
|
|
Loading…
Reference in New Issue