summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/include/ansi.h15
-rw-r--r--sys/alpha/include/param.h3
-rw-r--r--sys/alpha/include/types.h10
3 files changed, 25 insertions, 3 deletions
diff --git a/sys/alpha/include/ansi.h b/sys/alpha/include/ansi.h
index 5907db2..78e9331 100644
--- a/sys/alpha/include/ansi.h
+++ b/sys/alpha/include/ansi.h
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id: ansi.h,v 1.1 1998/01/10 10:13:13 jb Exp $ */
/* From: NetBSD: ansi.h,v 1.9 1997/11/23 20:20:53 kleink Exp */
/*-
@@ -92,4 +92,17 @@ typedef struct {
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
+/*
+ * Frequencies of the clock ticks reported by clock() and times(). They
+ * are the same as stathz for bogus historical reasons. They should be
+ * 1e6 because clock() and times() are implemented using getrusage() and
+ * there is no good reason why they should be less accurate. There is
+ * the bad reason that (broken) programs might not like clock_t or
+ * CLOCKS_PER_SEC being ``double'' (``unsigned long'' is not large enough
+ * to hold the required 24 hours worth of ticks if the frequency is
+ * 1000000ul, and ``unsigned long long'' would be nonstandard).
+ */
+#define _BSD_CLK_TCK_ 100
+#define _BSD_CLOCKS_PER_SEC_ 100
+
#endif /* _ANSI_H_ */
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h
index 7509c36..92dbbc6 100644
--- a/sys/alpha/include/param.h
+++ b/sys/alpha/include/param.h
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id: param.h,v 1.1 1998/01/10 10:13:15 jb Exp $ */
/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
/*
@@ -71,6 +71,7 @@
#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
#define NBPG (1 << ALPHA_PGSHIFT) /* bytes/page */
+#define PAGE_SIZE NBPG
#define PGOFSET (NBPG-1) /* byte off. into pg */
#define PGSHIFT ALPHA_PGSHIFT /* LOG2(NBPG) */
#define NPTEPG (1 << (PGSHIFT-PTESHIFT)) /* pte's/page */
diff --git a/sys/alpha/include/types.h b/sys/alpha/include/types.h
index 67249e7..bd08659 100644
--- a/sys/alpha/include/types.h
+++ b/sys/alpha/include/types.h
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id: types.h,v 1.1 1998/01/10 10:13:16 jb Exp $ */
/* From: NetBSD: types.h,v 1.8 1997/04/06 08:47:45 cgd Exp */
/*-
@@ -70,4 +70,12 @@ typedef unsigned long u_int64_t;
typedef int64_t register_t;
+typedef int32_t ufs_daddr_t;
+
+/* Interrupt mask (spl, xxx_imask, etc) */
+typedef u_int32_t intrmask_t;
+
+/* Interrupt handler function type - arg should be "void *" one day */
+typedef void inthand2_t(int _unit);
+
#endif /* _MACHTYPES_H_ */
OpenPOWER on IntegriCloud