Home
last modified time | relevance | path

Searched refs:acrs (Results 1 - 25 of 42) sorted by relevance

12

/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dswitch_to.h19 static inline void save_access_regs(unsigned int *acrs) in save_access_regs() argument
23 asm volatile("stam 0,15,%0" : "=Q" (*(acrstype *)acrs)); in save_access_regs()
26 static inline void restore_access_regs(unsigned int *acrs) in restore_access_regs() argument
30 asm volatile("lam 0,15,%0" : : "Q" (*(acrstype *)acrs)); in restore_access_regs()
39 save_access_regs(&prev->thread.acrs[0]); \
43 restore_access_regs(&next->thread.acrs[0]); \
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dswitch_to.h19 static inline void save_access_regs(unsigned int *acrs) in save_access_regs() argument
23 asm volatile("stam 0,15,%0" : "=Q" (*(acrstype *)acrs)); in save_access_regs()
26 static inline void restore_access_regs(unsigned int *acrs) in restore_access_regs() argument
30 asm volatile("lam 0,15,%0" : : "Q" (*(acrstype *)acrs)); in restore_access_regs()
39 save_access_regs(&prev->thread.acrs[0]); \
43 restore_access_regs(&next->thread.acrs[0]); \
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/s390x/
H A Dresets.c99 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
108 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear()
127 TEST_ASSERT(sync_regs->acrs[9] == 1, "ar9 == 1 (sync_regs)"); in assert_initial_noclear()
H A Dsync_regs_test.c65 REG_COMPARE32(acrs[i]); in compare_sregs()
151 run->s.regs.acrs[0] = 1 << 11; in main()
164 TEST_ASSERT(run->s.regs.acrs[0] == 1 << 11, in main()
166 run->s.regs.acrs[0]); in main()
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dcompat_signal.c56 save_access_regs(current->thread.acrs); in store_sigregs()
63 restore_access_regs(current->thread.acrs); in load_sigregs()
78 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs32()
79 sizeof(user_sregs.regs.acrs)); in save_sigregs32()
116 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs32()
117 sizeof(current->thread.acrs)); in restore_sigregs32()
H A Dsignal.c109 save_access_regs(current->thread.acrs); in store_sigregs()
116 restore_access_regs(current->thread.acrs); in load_sigregs()
130 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
131 sizeof(user_sregs.regs.acrs)); in save_sigregs()
167 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
168 sizeof(current->thread.acrs)); in restore_sigregs()
H A Dprocess.c107 save_access_regs(&p->thread.acrs[0]); in copy_thread()
158 p->thread.acrs[0] = (unsigned int)tls; in copy_thread()
160 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread()
161 p->thread.acrs[1] = (unsigned int)tls; in copy_thread()
H A Dptrace.c204 if (addr < (addr_t) &dummy->regs.acrs) { in __peek_user()
219 offset = addr - (addr_t) &dummy->regs.acrs; in __peek_user()
222 * from acrs[15]. Result is a 64 bit value. Read the in __peek_user()
223 * 32 bit acrs[15] value and shift it by 32. Sick... in __peek_user()
225 if (addr == (addr_t) &dummy->regs.acrs[15]) in __peek_user()
226 tmp = ((unsigned long) child->thread.acrs[15]) << 32; in __peek_user()
228 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); in __peek_user()
286 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in peek_user()
356 if (addr < (addr_t) &dummy->regs.acrs) { in __poke_user()
385 offset = addr - (addr_t) &dummy->regs.acrs; in __poke_user()
[all...]
H A Dcrash_dump.c43 u32 acrs[16]; member
93 memcpy(&sa->acrs, &lc->access_regs_save_area, sizeof(sa->acrs)); in save_area_add_regs()
367 memcpy(&nt_prstatus.pr_reg.acrs, sa->acrs, sizeof(sa->acrs)); in fill_cpu_elf_notes()
H A Dcompat_ptrace.h24 u32 acrs[NUM_ACRS]; member
H A Dearly.c268 unsigned int acrs[NUM_ACRS] = { 0 }; in setup_access_registers() local
270 restore_access_regs(acrs); in setup_access_registers()
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dcompat_signal.c57 save_access_regs(current->thread.acrs); in store_sigregs()
64 restore_access_regs(current->thread.acrs); in load_sigregs()
79 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs32()
80 sizeof(user_sregs.regs.acrs)); in save_sigregs32()
117 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs32()
118 sizeof(current->thread.acrs)); in restore_sigregs32()
H A Dsignal.c110 save_access_regs(current->thread.acrs); in store_sigregs()
117 restore_access_regs(current->thread.acrs); in load_sigregs()
131 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
132 sizeof(user_sregs.regs.acrs)); in save_sigregs()
168 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
169 sizeof(current->thread.acrs)); in restore_sigregs()
H A Dprocess.c123 save_access_regs(&p->thread.acrs[0]); in copy_thread()
172 p->thread.acrs[0] = (unsigned int)tls; in copy_thread()
174 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread()
175 p->thread.acrs[1] = (unsigned int)tls; in copy_thread()
H A Dptrace.c198 if (addr < offsetof(struct user, regs.acrs)) { in __peek_user()
213 offset = addr - offsetof(struct user, regs.acrs); in __peek_user()
216 * from acrs[15]. Result is a 64 bit value. Read the in __peek_user()
217 * 32 bit acrs[15] value and shift it by 32. Sick... in __peek_user()
219 if (addr == offsetof(struct user, regs.acrs[15])) in __peek_user()
220 tmp = ((unsigned long) child->thread.acrs[15]) << 32; in __peek_user()
222 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); in __peek_user()
280 if (addr >= offsetof(struct user, regs.acrs) && in peek_user()
328 if (addr < offsetof(struct user, regs.acrs)) { in __poke_user()
359 offset = addr - offsetof(struct user, regs.acrs); in __poke_user()
[all...]
H A Dcrash_dump.c45 u32 acrs[16]; member
95 memcpy(&sa->acrs, &lc->access_regs_save_area, sizeof(sa->acrs)); in save_area_add_regs()
308 memcpy(&nt_prstatus.pr_reg.acrs, sa->acrs, sizeof(sa->acrs)); in fill_cpu_elf_notes()
H A Dcompat_ptrace.h24 u32 acrs[NUM_ACRS]; member
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/s390x/
H A Dsync_regs_test.c65 REG_COMPARE32(acrs[i]); in compare_sregs()
153 run->s.regs.acrs[0] = 1 << 11; in test_set_and_verify_various_reg_values()
169 TEST_ASSERT(run->s.regs.acrs[0] == 1 << 11, in test_set_and_verify_various_reg_values()
171 run->s.regs.acrs[0]); in test_set_and_verify_various_reg_values()
H A Dresets.c96 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
105 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear()
126 TEST_ASSERT(sync_regs->acrs[9] == 1, "ar9 == 1 (sync_regs)"); in assert_initial_noclear()
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
H A Dsigcontext.h51 unsigned int acrs[__NUM_ACRS]; member
H A Dkvm.h182 __u32 acrs[16]; member
249 __u32 acrs[16]; /* access registers */ member
/kernel/linux/linux-6.6/arch/s390/include/uapi/asm/
H A Dsigcontext.h51 unsigned int acrs[__NUM_ACRS]; member
H A Dkvm.h199 __u32 acrs[16]; member
266 __u32 acrs[16]; /* access registers */ member
/kernel/linux/linux-5.10/tools/arch/s390/include/uapi/asm/
H A Dkvm.h182 __u32 acrs[16]; member
249 __u32 acrs[16]; /* access registers */ member
/kernel/linux/linux-6.6/tools/arch/s390/include/uapi/asm/
H A Dkvm.h183 __u32 acrs[16]; member
250 __u32 acrs[16]; /* access registers */ member

Completed in 15 milliseconds

12