diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-23 16:12:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-23 16:12:32 +0000 |
commit | 73c9f13809997febbf178be4123a0352ee8b8312 (patch) | |
tree | 4a514d179014528fcaa112abb942d619dc1ae9ca /sys/arch/macppc/include | |
parent | 3ea8990ba9276efe1c2bbde129074f8dd9b8c992 (diff) |
refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is added
to keep definitions our of user space. The MD files now follow a consistant
order -- all namespace intrusion is at the tail can be cleaned up
independently. locore, bootblocks, and libkvm still see enough visibility to
build. Checked on 90% of platforms...
Diffstat (limited to 'sys/arch/macppc/include')
-rw-r--r-- | sys/arch/macppc/include/param.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/macppc/include/param.h b/sys/arch/macppc/include/param.h index 709e1de4486..47e01dd1307 100644 --- a/sys/arch/macppc/include/param.h +++ b/sys/arch/macppc/include/param.h @@ -1,5 +1,4 @@ -/* $OpenBSD: param.h,v 1.4 2005/09/12 23:05:05 miod Exp $ */ -/* $NetBSD: param.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */ +/* $OpenBSD: param.h,v 1.5 2013/03/23 16:12:24 deraadt Exp $ */ /*- * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,6 +31,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _MACHINE_PARAM_H_ +#define _MACHINE_PARAM_H_ + #ifdef _KERNEL #ifndef _LOCORE #include <machine/cpu.h> @@ -40,12 +42,11 @@ #include <powerpc/param.h> -/* - * Machine dependent constants for macppc (32-bit only currently) - */ #define MACHINE "macppc" #define _MACHINE macppc #define KERNBASE 0x100000 -#define MSGBUFSIZE (NBPG*2) +#define MSGBUFSIZE (2 * PAGE_SIZE) + +#endif /* _MACHINE_PARAM_H_ */ |