summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-18 22:05:22 +0000
committerbde <bde@FreeBSD.org>1994-09-18 22:05:22 +0000
commit180938d6efabca90f7ecf912191ae2f71a44b192 (patch)
treeb9828e3f0f800b9aeaef90c7ca9039009f114d30 /sys/i386
parent89067f38ec0f3f1d039824f1c6c279bd440d205d (diff)
downloadFreeBSD-src-180938d6efabca90f7ecf912191ae2f71a44b192.zip
FreeBSD-src-180938d6efabca90f7ecf912191ae2f71a44b192.tar.gz
Replace `unsigned' by `u_int' so that it is not necessary to include
<sys/types.h> before including this header. This header is now idempotent. Uniformize idempotency #ifdef.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/param.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index ab8ad9c..fdc550b 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -34,11 +34,11 @@
* SUCH DAMAGE.
*
* from: @(#)param.h 5.8 (Berkeley) 6/28/91
- * $Id: param.h,v 1.13 1994/01/31 04:18:54 davidg Exp $
+ * $Id: param.h,v 1.15 1994/05/25 08:56:14 rgrimes Exp $
*/
#ifndef _MACHINE_PARAM_H_
-#define _MACHINE_PARAM_H_ 1
+#define _MACHINE_PARAM_H_
/*
* Machine dependent constants for Intel 386.
@@ -49,11 +49,11 @@
/*
* Round p (pointer or byte index) up to a correctly-aligned value
- * for all data types (int, long, ...). The result is u_int and
- * must be cast to any desired pointer type.
+ * for all data types (int, long, ...). The result is unsigned int
+ * and must be cast to any desired pointer type.
*/
#define ALIGNBYTES (sizeof(int) - 1)
-#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+#define ALIGN(p) (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
/* XXX PGSHIFT and PG_SHIFT are two names for the same thing */
#define PGSHIFT 12 /* LOG2(NBPG) */
@@ -165,4 +165,4 @@
#define i386_btop(x) ((unsigned)(x) >> PGSHIFT)
#define i386_ptob(x) ((unsigned)(x) << PGSHIFT)
-#endif /* _MACHINE_PARAM_H_ */
+#endif /* !_MACHINE_PARAM_H_ */
OpenPOWER on IntegriCloud