M7350/qcom-opensource/kernel/kernel-tests/swp
2024-09-09 08:57:42 +00:00
..
Android.mk M7350v5_en_gpl 2024-09-09 08:57:42 +00:00
Makefile.am M7350v5_en_gpl 2024-09-09 08:57:42 +00:00
README M7350v5_en_gpl 2024-09-09 08:57:42 +00:00
run.sh M7350v5_en_gpl 2024-09-09 08:57:42 +00:00
swp_test.c M7350v5_en_gpl 2024-09-09 08:57:42 +00:00
swp_test.sh M7350v5_en_gpl 2024-09-09 08:57:42 +00:00
swp.mk M7350v5_en_gpl 2024-09-09 08:57:42 +00:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SWP Kernel Test

usage: ./swp_test

Description:
The use of SWP is deprecated in ARMv6 and above. Since there are a number of existing Android
apps that use this instruction, we need to make sure that the SWP emulation feature is present
and enabled in our kernels. This kernel test is to emulate the deprecated swp instruction


SWP Rt, Rt2, [Rn]

Rt : is the destination register.
Rt2 : is the source register. Rt2 can be the same register as Rt.
Rn : contains the address in memory. Rn must be a different register from both Rt and Rt2.