• Max Filippov's avatar
    xtensa: add s32c1i sanity check · 00273125
    Max Filippov authored
    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: default avatarMarc Gauthier <marc@tensilica.com>
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: default avatarChris Zankel <chris@zankel.net>
    00273125
regs.h 3.69 KB