]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/ppc/param.h
xnu-1456.1.26.tar.gz
[apple/xnu.git] / bsd / ppc / param.h
index 24f696e4e0fa6c2e13a08e88800dc78535c0c1c7..a434e3c4cf19bd7aeb2084fac578c04cc52004e5 100644 (file)
 #ifndef        _PPC_PARAM_H_
 #define        _PPC_PARAM_H_
 
+#include <ppc/_param.h>
+
 /*
  * Round p (pointer or byte index) up to a correctly-aligned value for all
  * data types (int, long, ...).   The result is unsigned int and must be
  * cast to any desired pointer type.
  */
-#define        ALIGNBYTES      3
-#define        ALIGN(p)        (((unsigned int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+#define        ALIGNBYTES      __DARWIN_ALIGNBYTES
+#define        ALIGN(p)        __DARWIN_ALIGN(p)
 
 #define        NBPG            4096            /* bytes/page */
 #define        PGOFSET         (NBPG-1)        /* byte offset into page */