mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2679f63fe5
This adds a set of test cases to test the behaviour of copy_tofrom_user when exceptions are encountered accessing the source or destination. Currently, copy_tofrom_user does not always copy as many bytes as possible when an exception occurs on a store to the destination, and that is reflected in failures in these tests. Based on a test program from Anton Blanchard. [paulus@ozlabs.org - test all three paths, wrote commit description, made EX_TABLE create an exception table.] Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
20 lines
230 B
ArmAsm
20 lines
230 B
ArmAsm
#include <asm/ppc_asm.h>
|
|
|
|
FUNC_START(enter_vmx_usercopy)
|
|
li r3,1
|
|
blr
|
|
|
|
FUNC_START(exit_vmx_usercopy)
|
|
li r3,0
|
|
blr
|
|
|
|
FUNC_START(enter_vmx_ops)
|
|
li r3,1
|
|
blr
|
|
|
|
FUNC_START(exit_vmx_ops)
|
|
blr
|
|
|
|
FUNC_START(__copy_tofrom_user_base)
|
|
blr
|