Machine dependent ifdefs for sparc64.

This commit is contained in:
Jake Burkholder 2001-07-31 04:14:30 +00:00
parent 3a9b5daf48
commit 9ceb184438
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80706
3 changed files with 5 additions and 2 deletions

View file

@ -75,7 +75,7 @@ struct fid {
#if defined(__i386__) || defined(__powerpc__)
#define MNAMELEN 80 /* length of buffer for returned name */
#endif
#if defined(__alpha__) || defined(__ia64__)
#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__)
#define MNAMELEN 72 /* length of buffer for returned name */
#endif

View file

@ -203,7 +203,7 @@
* Constraints: PAGE_SIZE <= MAXALLOCSAVE <= 2 ** (MINBUCKET + 14), and
* MAXALLOCSIZE must be a power of two.
*/
#if defined(__alpha__) || defined(__ia64__)
#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__)
#define MINBUCKET 5 /* 5 => min allocation of 32 bytes */
#else
#define MINBUCKET 4 /* 4 => min allocation of 16 bytes */

View file

@ -85,6 +85,9 @@
#ifdef __powerpc__
#define KINFO_PROC_SIZE 656
#endif
#ifdef __sparc64__
#define KINFO_PROC_SIZE 888
#endif
#ifndef KINFO_PROC_SIZE
#error "Unknown architecture"
#endif