Commit b1d560a0 authored by Brad King's avatar Brad King
Browse files

CPU: MIPS is biendian

MIPS machines are biendian hence they can run both big endian kernels
e.g. Debian mips architecture, and little endian kernels e.g. Debian
mipsel architecture.  Use predefined macros to distinguish them.

Change-Id: I75fccd3cb1ef7915c8754ebbb64cb52a948b4ad8
Reported-by: default avatarMathieu Malaterre <>
Inspired-by: default avatarModestas Vainius <>
parent 34fceb50
......@@ -76,7 +76,15 @@
#elif defined(__m68k__) || defined(M68000)
/* MIPS */
/* MIPSel (MIPS little endian) */
#elif defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL)
/* MIPSeb (MIPS big endian) */
#elif defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB)
/* MIPS (fallback, big endian) */
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment