Server IP : 104.21.38.3 / Your IP : 162.158.108.65 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/arch/s390/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_S390_NOSPEC_ASM_H #define _ASM_S390_NOSPEC_ASM_H #include <asm/alternative-asm.h> #include <asm/asm-offsets.h> #include <asm/dwarf.h> #ifdef __ASSEMBLY__ #ifdef CC_USING_EXPOLINE _LC_BR_R1 = __LC_BR_R1 /* * The expoline macros are used to create thunks in the same format * as gcc generates them. The 'comdat' section flag makes sure that * the various thunks are merged into a single copy. */ .macro __THUNK_PROLOG_NAME name #ifdef CONFIG_EXPOLINE_EXTERN .pushsection .text,"ax",@progbits .align 16,0x07 #else .pushsection .text.\name,"axG",@progbits,\name,comdat #endif .globl \name .hidden \name .type \name,@function \name: CFI_STARTPROC .endm .macro __THUNK_EPILOG_NAME name CFI_ENDPROC #ifdef CONFIG_EXPOLINE_EXTERN .size \name, .-\name #endif .popsection .endm #ifdef CONFIG_HAVE_MARCH_Z10_FEATURES .macro __THUNK_PROLOG_BR r1,r2 __THUNK_PROLOG_NAME __s390_indirect_jump_r\r1 .endm .macro __THUNK_EPILOG_BR r1,r2 __THUNK_EPILOG_NAME __s390_indirect_jump_r\r1 .endm .macro __THUNK_BR r1,r2 jg __s390_indirect_jump_r\r1 .endm .macro __THUNK_BRASL r1,r2,r3 brasl \r1,__s390_indirect_jump_r\r2 .endm #else .macro __THUNK_PROLOG_BR r1,r2 __THUNK_PROLOG_NAME __s390_indirect_jump_r\r2\()use_r\r1 .endm .macro __THUNK_EPILOG_BR r1,r2 __THUNK_EPILOG_NAME __s390_indirect_jump_r\r2\()use_r\r1 .endm .macro __THUNK_BR r1,r2 jg __s390_indirect_jump_r\r2\()use_r\r1 .endm .macro __THUNK_BRASL r1,r2,r3 brasl \r1,__s390_indirect_jump_r\r3\()use_r\r2 .endm #endif .macro __DECODE_RR expand,reg,ruse .set __decode_fail,1 .irp r1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .ifc \reg,%r\r1 .irp r2,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .ifc \ruse,%r\r2 \expand \r1,\r2 .set __decode_fail,0 .endif .endr .endif .endr .if __decode_fail == 1 .error "__DECODE_RR failed" .endif .endm .macro __DECODE_RRR expand,rsave,rtarget,ruse .set __decode_fail,1 .irp r1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .ifc \rsave,%r\r1 .irp r2,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .ifc \rtarget,%r\r2 .irp r3,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .ifc \ruse,%r\r3 \expand \r1,\r2,\r3 .set __decode_fail,0 .endif .endr .endif .endr .endif .endr .if __decode_fail == 1 .error "__DECODE_RRR failed" .endif .endm .macro __THUNK_EX_BR reg,ruse # Be very careful when adding instructions to this macro! # The ALTERNATIVE replacement code has a .+10 which targets # the "br \reg" after the code has been patched. #ifdef CONFIG_HAVE_MARCH_Z10_FEATURES exrl 0,555f j . #else .ifc \reg,%r1 ALTERNATIVE "ex %r0,_LC_BR_R1", ".insn ril,0xc60000000000,0,.+10", 35 j . .else larl \ruse,555f ex 0,0(\ruse) j . .endif #endif 555: br \reg .endm #ifdef CONFIG_EXPOLINE_EXTERN .macro GEN_BR_THUNK reg,ruse=%r1 .endm .macro GEN_BR_THUNK_EXTERN reg,ruse=%r1 #else .macro GEN_BR_THUNK reg,ruse=%r1 #endif __DECODE_RR __THUNK_PROLOG_BR,\reg,\ruse __THUNK_EX_BR \reg,\ruse __DECODE_RR __THUNK_EPILOG_BR,\reg,\ruse .endm .macro BR_EX reg,ruse=%r1 557: __DECODE_RR __THUNK_BR,\reg,\ruse .pushsection .s390_indirect_branches,"a",@progbits .long 557b-. .popsection .endm .macro BASR_EX rsave,rtarget,ruse=%r1 559: __DECODE_RRR __THUNK_BRASL,\rsave,\rtarget,\ruse .pushsection .s390_indirect_branches,"a",@progbits .long 559b-. .popsection .endm #else .macro GEN_BR_THUNK reg,ruse=%r1 .endm .macro BR_EX reg,ruse=%r1 br \reg .endm .macro BASR_EX rsave,rtarget,ruse=%r1 basr \rsave,\rtarget .endm #endif /* CC_USING_EXPOLINE */ #endif /* __ASSEMBLY__ */ #endif /* _ASM_S390_NOSPEC_ASM_H */