Add ia64 support.
This commit is contained in:
parent
c7821f3ffd
commit
918c9eec57
@ -44,7 +44,7 @@
|
||||
#define memcpy(x,y,z) bcopy(y, x, z)
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) || defined(__alpha__)
|
||||
#if defined(__i386__) || defined(__alpha__) || defined(__ia64__)
|
||||
#define Encode memcpy
|
||||
#define Decode memcpy
|
||||
#else /* __i386__ */
|
||||
|
@ -70,7 +70,7 @@ struct fid {
|
||||
#ifdef __i386__
|
||||
#define MNAMELEN 80 /* length of buffer for returned name */
|
||||
#endif
|
||||
#ifdef __alpha__
|
||||
#if defined(__alpha__) || defined(__ia64__)
|
||||
#define MNAMELEN 72 /* length of buffer for returned name */
|
||||
#endif
|
||||
|
||||
|
@ -214,7 +214,7 @@
|
||||
* Constraints: PAGE_SIZE <= MAXALLOCSAVE <= 2 ** (MINBUCKET + 14), and
|
||||
* MAXALLOCSIZE must be a power of two.
|
||||
*/
|
||||
#if defined(__alpha__)
|
||||
#if defined(__alpha__) || defined(__ia64__)
|
||||
#define MINBUCKET 5 /* 5 => min allocation of 32 bytes */
|
||||
#else
|
||||
#define MINBUCKET 4 /* 4 => min allocation of 16 bytes */
|
||||
|
@ -247,7 +247,7 @@ void splx __P((intrmask_t ipl));
|
||||
void splz __P((void));
|
||||
#endif /* __i386__ */
|
||||
|
||||
#ifdef __alpha__
|
||||
#if defined(__alpha__) || defined(__ia64__)
|
||||
#include <machine/ipl.h>
|
||||
#endif
|
||||
|
||||
|
@ -99,6 +99,7 @@ char *machinename;
|
||||
#define MACHINE_I386 1
|
||||
#define MACHINE_PC98 2
|
||||
#define MACHINE_ALPHA 3
|
||||
#define MACHINE_IA64 4
|
||||
|
||||
/*
|
||||
* For each machine, a set of CPU's may be specified as supported.
|
||||
|
@ -120,6 +120,9 @@ Config_spec:
|
||||
} else if (!strcmp($2, "alpha")) {
|
||||
machine = MACHINE_ALPHA;
|
||||
machinename = "alpha";
|
||||
} else if (!strcmp($2, "ia64")) {
|
||||
machine = MACHINE_IA64;
|
||||
machinename = "ia64";
|
||||
} else
|
||||
yyerror("Unknown machine type");
|
||||
} |
|
||||
|
@ -168,6 +168,7 @@ main(int argc, char **argv)
|
||||
case MACHINE_I386:
|
||||
case MACHINE_PC98:
|
||||
case MACHINE_ALPHA:
|
||||
case MACHINE_IA64:
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -59,6 +59,7 @@ static struct users {
|
||||
{ 8, 2, 512 }, /* MACHINE_I386 */
|
||||
{ 8, 2, 512 }, /* MACHINE_PC98 */
|
||||
{ 8, 2, 512 }, /* MACHINE_ALPHA */
|
||||
{ 8, 2, 512 }, /* MACHINE_IA64 */
|
||||
};
|
||||
#define NUSERS (sizeof (users) / sizeof (users[0]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user