diff options
author | Matthew Macy <[email protected]> | 2020-07-25 11:00:23 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-25 11:00:23 -0700 |
commit | f5b189f9379b092600293ac3e7a670bf2087d88c (patch) | |
tree | 303d187727bf643c8e0ec91a937c76a6f33c5dcd /include/os | |
parent | d364de7a89dc339aad1bc20d429dc670e61dc1ff (diff) |
FreeBSD: Fixes required to build ZFS on PowerPC
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #10622
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/freebsd/spl/sys/isa_defs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/os/freebsd/spl/sys/isa_defs.h b/include/os/freebsd/spl/sys/isa_defs.h index a9d1a4e1f..863c2447f 100644 --- a/include/os/freebsd/spl/sys/isa_defs.h +++ b/include/os/freebsd/spl/sys/isa_defs.h @@ -542,6 +542,21 @@ extern "C" { #define _BIT_FIELDS_LTOH #endif +#if !defined(__powerpc) +#define __powerpc +#endif + +#if defined(__powerpc64__) +#define _LONG_LONG_ALIGNMENT 8 +#define _MULTI_DATAMODEL +#else +#define _LONG_LONG_ALIGNMENT 4 +#endif +#define _LONG_LONG_ALIGNMENT_32 4 +#define _ALIGNMENT_REQUIRED 1 + +#define _SUNOS_VTOC_16 1 + /* * The following set of definitions characterize the Solaris on SPARC systems. * |