~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef __SELFTESTS_POWERPC_PPC_ASM_H
  3 #define __SELFTESTS_POWERPC_PPC_ASM_H
  4 #include <ppc-asm.h>
  5 
  6 #define CONFIG_ALTIVEC
  7 
  8 #define r1      1
  9 
 10 #define R14 r14
 11 #define R15 r15
 12 #define R16 r16
 13 #define R17 r17
 14 #define R18 r18
 15 #define R19 r19
 16 #define R20 r20
 17 #define R21 r21
 18 #define R22 r22
 19 #define R29 r29
 20 #define R30 r30
 21 #define R31 r31
 22 
 23 #define STACKFRAMESIZE  256
 24 #define STK_REG(i)      (112 + ((i)-14)*8)
 25 
 26 #define _GLOBAL(A) FUNC_START(test_ ## A)
 27 #define _GLOBAL_TOC(A) _GLOBAL(A)
 28 #define _GLOBAL_TOC_KASAN(A) _GLOBAL(A)
 29 #define _GLOBAL_KASAN(A) _GLOBAL(A)
 30 #define CFUNC(name) name
 31 
 32 #define PPC_MTOCRF(A, B)        mtocrf A, B
 33 
 34 #define EX_TABLE(x, y)                  \
 35         .section __ex_table,"a";        \
 36         .8byte  x, y;                   \
 37         .previous
 38 
 39 #define BEGIN_FTR_SECTION               .if test_feature
 40 #define FTR_SECTION_ELSE                .else
 41 #define ALT_FTR_SECTION_END_IFCLR(x)    .endif
 42 #define ALT_FTR_SECTION_END_IFSET(x)    .endif
 43 #define ALT_FTR_SECTION_END(x, y)       .endif
 44 #define END_FTR_SECTION_IFCLR(x)        .endif
 45 #define END_FTR_SECTION_IFSET(x)        .endif
 46 
 47 /* Default to taking the first of any alternative feature sections */
 48 test_feature = 1
 49 
 50 #define DCBT_SETUP_STREAMS(from, from_parms, to, to_parms, scratch)     \
 51         lis     scratch,0x8000; /* GO=1 */                              \
 52         clrldi  scratch,scratch,32;                                     \
 53         /* setup read stream 0 */                                       \
 54         dcbt    0,from,0b01000;         /* addr from */                 \
 55         dcbt    0,from_parms,0b01010;   /* length and depth from */     \
 56         /* setup write stream 1 */                                      \
 57         dcbtst  0,to,0b01000;           /* addr to */                   \
 58         dcbtst  0,to_parms,0b01010;     /* length and depth to */       \
 59         eieio;                                                          \
 60         dcbt    0,scratch,0b01010;      /* all streams GO */
 61 
 62 #endif /* __SELFTESTS_POWERPC_PPC_ASM_H */
 63 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php