Home
last modified time | relevance | path

Searched refs:acrs (Results 1 – 22 of 22) sorted by relevance

/OK3568_Linux_fs/kernel/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]); \
H A Dcompat.h75 u32 acrs[NUM_ACRS]; member
H A Dprocessor.h111 unsigned int acrs[NUM_ACRS]; member
/OK3568_Linux_fs/kernel/arch/s390/kernel/
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()
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()
392 if (addr == (addr_t) &dummy->regs.acrs[15]) in __poke_user()
393 child->thread.acrs[15] = (unsigned int) (data >> 32); in __poke_user()
[all …]
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 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 Dearly.c268 unsigned int acrs[NUM_ACRS] = { 0 }; in setup_access_registers() local
270 restore_access_regs(acrs); in setup_access_registers()
H A Dcompat_ptrace.h24 u32 acrs[NUM_ACRS]; member
H A Dcompat_linux.h45 __u32 acrs[__NUM_ACRS]; member
H A Dentry.S1120 lam %a0,%a15,__LC_AREGS_SAVE_AREA-4095(%r1) # validate acrs
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/tools/arch/s390/include/uapi/asm/
H A Dptrace.h285 unsigned int acrs[NUM_ACRS]; member
443 unsigned int acrs[NUM_ACRS]; member
H A Dkvm.h182 __u32 acrs[16]; member
249 __u32 acrs[16]; /* access registers */ member
/OK3568_Linux_fs/kernel/arch/s390/include/uapi/asm/
H A Dkvm.h182 __u32 acrs[16]; member
249 __u32 acrs[16]; /* access registers */ member
H A Dptrace.h285 unsigned int acrs[NUM_ACRS]; member
443 unsigned int acrs[NUM_ACRS]; member
H A Dsigcontext.h51 unsigned int acrs[__NUM_ACRS]; member
/OK3568_Linux_fs/kernel/arch/s390/kvm/
H A Dkvm-s390.c3595 memset(&regs->acrs, 0, sizeof(regs->acrs)); in kvm_arch_vcpu_ioctl_clear_reset()
3623 memcpy(&vcpu->run->s.regs.acrs, &sregs->acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_set_sregs()
3635 memcpy(&sregs->acrs, &vcpu->run->s.regs.acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_get_sregs()
4288 restore_access_regs(vcpu->run->s.regs.acrs); in sync_regs()
4360 save_access_regs(vcpu->run->s.regs.acrs); in store_regs()
4491 &vcpu->run->s.regs.acrs, 64); in kvm_s390_store_status_unloaded()
4506 save_access_regs(vcpu->run->s.regs.acrs); in kvm_s390_vcpu_store_status()
H A Dgaccess.c393 save_access_regs(vcpu->run->s.regs.acrs); in ar_translation()
394 alet.val = vcpu->run->s.regs.acrs[ar]; in ar_translation()
H A Dinterrupt.c592 save_access_regs(vcpu->run->s.regs.acrs); in __write_machine_check()
664 &vcpu->run->s.regs.acrs, 64); in __write_machine_check()