Add ia64 support.

This commit is contained in:
Doug Rabson 2000-09-29 13:36:47 +00:00
parent c7821f3ffd
commit 918c9eec57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66457
8 changed files with 10 additions and 4 deletions

View File

@ -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__ */

View File

@ -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

View File

@ -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 */

View File

@ -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

View File

@ -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.

View File

@ -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");
} |

View File

@ -168,6 +168,7 @@ main(int argc, char **argv)
case MACHINE_I386:
case MACHINE_PC98:
case MACHINE_ALPHA:
case MACHINE_IA64:
break;
default:

View File

@ -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]))