summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-07-31 04:14:30 +0000
committerjake <jake@FreeBSD.org>2001-07-31 04:14:30 +0000
commit26012d6fbfecaf04fc8b62bcc212912970ef4306 (patch)
treeeef4b4c7a86c14082bf44c9caf2d9a6007d23103 /sys
parentb4050e8494dfef8b7a3aa9449d11b1f4c7c0201e (diff)
downloadFreeBSD-src-26012d6fbfecaf04fc8b62bcc212912970ef4306.zip
FreeBSD-src-26012d6fbfecaf04fc8b62bcc212912970ef4306.tar.gz
Machine dependent ifdefs for sparc64.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/mount.h2
-rw-r--r--sys/sys/param.h2
-rw-r--r--sys/sys/user.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index d35a204..e2d53ab 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -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
diff --git a/sys/sys/param.h b/sys/sys/param.h
index c3d46e4..ca1590e 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -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 */
diff --git a/sys/sys/user.h b/sys/sys/user.h
index d89e39a..5f74d60 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -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
OpenPOWER on IntegriCloud