Will Deacon | 12a0ef7 | 2013-11-06 17:20:22 +0000 | [diff] [blame] | 1 | lib-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.yuan | 0a42cb0 | 2014-04-28 13:11:34 +0800 | [diff] [blame] | 4 | memcmp.o strcmp.o strncmp.o strlen.o strnlen.o \ |
| 5 | strchr.o strrchr.o |
Will Deacon | c0385b2 | 2015-02-03 12:39:03 +0000 | [diff] [blame] | 6 | |
Ard Biesheuvel | 5be8b70 | 2016-02-25 20:48:53 +0100 | [diff] [blame] | 7 | # Tell the compiler to treat all general purpose registers (with the |
| 8 | # exception of the IP registers, which are already handled by the caller |
| 9 | # in case of a PLT) as callee-saved, which allows for efficient runtime |
| 10 | # patching of the bl instruction in the caller with an atomic instruction |
| 11 | # when supported by the CPU. Result and argument registers are handled |
| 12 | # correctly, based on the function prototype. |
Will Deacon | c0385b2 | 2015-02-03 12:39:03 +0000 | [diff] [blame] | 13 | lib-$(CONFIG_ARM64_LSE_ATOMICS) += atomic_ll_sc.o |
Tri Vo | 5fa09db | 2018-09-19 12:27:50 -0700 | [diff] [blame] | 14 | CFLAGS_atomic_ll_sc.o := -ffixed-x1 -ffixed-x2 \ |
Will Deacon | c0385b2 | 2015-02-03 12:39:03 +0000 | [diff] [blame] | 15 | -ffixed-x3 -ffixed-x4 -ffixed-x5 -ffixed-x6 \ |
| 16 | -ffixed-x7 -fcall-saved-x8 -fcall-saved-x9 \ |
| 17 | -fcall-saved-x10 -fcall-saved-x11 -fcall-saved-x12 \ |
| 18 | -fcall-saved-x13 -fcall-saved-x14 -fcall-saved-x15 \ |
Ard Biesheuvel | 5be8b70 | 2016-02-25 20:48:53 +0100 | [diff] [blame] | 19 | -fcall-saved-x18 |