Skip to content

Commit

Permalink
Add support for s390[x].
Browse files Browse the repository at this point in the history
Requires-spl: refs/pull/537/head
Signed-off-by: Dimitri John Ledkov <[email protected]>
  • Loading branch information
xnox committed Mar 16, 2016
1 parent 6bb24f4 commit 22bfbd1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/libspl/include/sys/isa_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,21 @@ extern "C" {
#endif
#endif

#else /* Currently x86_64, i386, arm, powerpc, and sparc are supported */
/* s390 arch specific defines */
#elif defined (__s390__)
#if defined(__s390x__)
#if !defined(_LP64)
#define _LP64
#endif
#else
#if !defined(_ILP32)
#define _ILP32
#endif
#endif

#define _BIG_ENDIAN

#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */
#error "Unsupported ISA type"
#endif

Expand Down

0 comments on commit 22bfbd1

Please sign in to comment.