blob: 1a811ecf71da8a8032a1e8cda8cf686f8fc71189 [file] [log] [blame]
Will Deacon12a0ef72013-11-06 17:20:22 +00001lib-y := bitops.o clear_user.o delay.o copy_from_user.o \
2 copy_to_user.o copy_in_user.o copy_page.o \
3 clear_page.o memchr.o memcpy.o memmove.o memset.o \
zhichang.yuan0a42cb02014-04-28 13:11:34 +08004 memcmp.o strcmp.o strncmp.o strlen.o strnlen.o \
5 strchr.o strrchr.o
Will Deaconc0385b22015-02-03 12:39:03 +00006
7# Tell the compiler to treat all general purpose registers as
8# callee-saved, which allows for efficient runtime patching of the bl
9# instruction in the caller with an atomic instruction when supported by
10# the CPU. Result and argument registers are handled correctly, based on
11# the function prototype.
12lib-$(CONFIG_ARM64_LSE_ATOMICS) += atomic_ll_sc.o
13CFLAGS_atomic_ll_sc.o := -fcall-used-x0 -ffixed-x1 -ffixed-x2 \
14 -ffixed-x3 -ffixed-x4 -ffixed-x5 -ffixed-x6 \
15 -ffixed-x7 -fcall-saved-x8 -fcall-saved-x9 \
16 -fcall-saved-x10 -fcall-saved-x11 -fcall-saved-x12 \
17 -fcall-saved-x13 -fcall-saved-x14 -fcall-saved-x15 \
18 -fcall-saved-x16 -fcall-saved-x17 -fcall-saved-x18