Skip to content

Commit

Permalink
parisc: Define CONFIG_CPU_BIG_ENDIAN
Browse files Browse the repository at this point in the history
While working on enabling queued rwlock on SPARC, found this following
code in include/asm-generic/qrwlock.h which uses CONFIG_CPU_BIG_ENDIAN
to clear a byte.

static inline u8 *__qrwlock_write_byte(struct qrwlock *lock)
 {
	return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
 }

Problem is many of the fixed big endian architectures don't define
CPU_BIG_ENDIAN and clears the wrong byte.

Define CPU_BIG_ENDIAN for parisc architecture to fix it.

Signed-off-by: Babu Moger <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
Babu Moger authored and hdeller committed Jul 31, 2017
1 parent 93964fd commit 74ad3d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ config PARISC
and later HP3000 series). The PA-RISC Linux project home page is
at <http://www.parisc-linux.org/>.

config CPU_BIG_ENDIAN
def_bool y

config MMU
def_bool y

Expand Down

0 comments on commit 74ad3d2

Please sign in to comment.