History log of /external/linux-kselftest/tools/testing/selftests/powerpc/switch_endian/check.S
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4cd968ef4249fde24194b7b9a74be87dd7f8ed0f 28-Mar-2015 Michael Ellerman <mpe@ellerman.id.au> selftests/powerpc: Add a test of the switch_endian() syscall

This adds a test of the switch_endian() syscall we added in the previous
commit.

We test it by calling the endian switch syscall, and then executing some
code in the other endian to check everything went as expected. That code
checks registers we expect to be maintained are. If the endian switch
failed to happen that code sequence will be illegal and cause the test
to abort.

We then switch back to the original endian, do the same checks and
finally write a success message and exit(0).

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
/external/linux-kselftest/tools/testing/selftests/powerpc/switch_endian/check.S