mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
4cd968ef42
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>
7 lines
111 B
C
7 lines
111 B
C
#include <ppc-asm.h>
|
|
#include <asm/unistd.h>
|
|
|
|
#ifndef __NR_switch_endian
|
|
#define __NR_switch_endian 363
|
|
#endif
|