]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: add s32c1i sanity check
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 28 Nov 2012 07:33:02 +0000 (11:33 +0400)
committerChris Zankel <chris@zankel.net>
Wed, 19 Dec 2012 05:10:22 +0000 (21:10 -0800)
commitf172f8337b69faba663641b2908485e4adc9d0f9
tree331f33a0a31f9306f4612ecc25c4c9a476840966
parent21407d4efbd30d90d102154c2040c71bffb52fbf
xtensa: add s32c1i sanity check

Add a brief sanity test of S32C1I functionality.  This instruction
is needed by the kernel and userland as part of the base ABI
(including GCC atomic builtins, certain threading packages, future
atomic support in the C++ standard, etc).  However, correct operation
of this instruction requires some cooperation by hardware external to
the processor (such as bus bridge, bus fabric, or memory controller).
Minimally exercising this mechanism and reporting explicit status
early in the boot process is helpful to chip vendors using the Linux
kernel as a benchmark of correctness of hardware.

As it turns out, S32C1I is not exercised by the kernel and by uClibc
based userland as of early June 2008.  This is expected to change
soon as both incorporate more recent open source developments.

Signed-off-by: Marc Gauthier <marc@tensilica.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/Kconfig.debug
arch/xtensa/include/asm/regs.h
arch/xtensa/kernel/setup.c