]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Define CONFIG_CPU_BIG_ENDIAN
authorBabu Moger <babu.moger@oracle.com>
Thu, 6 Jul 2017 16:34:19 +0000 (09:34 -0700)
committerHelge Deller <deller@gmx.de>
Mon, 31 Jul 2017 15:51:27 +0000 (17:51 +0200)
commit0d5013c344a8096137adb7f8bcd1cc99731babdd
tree9fcdbdacd85baf6fd8456c349110720b2ed74737
parentb714df836553959ce11fe4f13a0c4ca11dd771b3
parisc: Define CONFIG_CPU_BIG_ENDIAN

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 <babu.moger@oracle.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/Kconfig