Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Add isa_defs for MIPS #558

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion include/sys/isa_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,28 @@

#define _BIG_ENDIAN

#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */
/* MIPS arch specific defines */
#elif defined(__mips__)

#if defined(__MIPSEB__)
#define _BIG_ENDIAN
#elif defined(__MIPSEL__)
#define _LITTLE_ENDIAN
#else
#error MIPS no endian specified
#endif

#ifndef _LP64
#define _ILP32
#endif

#define _SUNOS_VTOC_16

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

Expand Down