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

TOMOYO Linux Cross Reference
Linux/include/asm-sparc64/head.h

Version: ~ [ linux-5.9 ] ~ [ linux-5.8.14 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.70 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.150 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.200 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.238 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.238 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ 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.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: head.h,v 1.30 1997/08/08 08:34:33 jj Exp $ */
  2 #ifndef _SPARC64_HEAD_H
  3 #define _SPARC64_HEAD_H
  4 
  5 #include <asm/pstate.h>
  6 
  7 #define KERNBASE        0x400000
  8 
  9 #define PTREGS_OFF      (STACK_BIAS + STACKFRAME_SZ)
 10 
 11 #define __CHEETAH_ID    0x003e0014
 12 #define __JALAPENO_ID   0x003e0016
 13 
 14 #define CHEETAH_MANUF           0x003e
 15 #define CHEETAH_IMPL            0x0014
 16 #define CHEETAH_PLUS_IMPL       0x0015
 17 #define JALAPENO_IMPL           0x0016
 18 
 19 #define BRANCH_IF_CHEETAH_BASE(tmp1,tmp2,label) \
 20         rdpr    %ver, %tmp1;                    \
 21         sethi   %hi(__CHEETAH_ID), %tmp2;       \
 22         srlx    %tmp1, 32, %tmp1;               \
 23         or      %tmp2, %lo(__CHEETAH_ID), %tmp2;\
 24         cmp     %tmp1, %tmp2;                   \
 25         be,pn   %icc, label;                    \
 26          nop;
 27 
 28 #define BRANCH_IF_JALAPENO(tmp1,tmp2,label)     \
 29         rdpr    %ver, %tmp1;                    \
 30         sethi   %hi(__JALAPENO_ID), %tmp2;      \
 31         srlx    %tmp1, 32, %tmp1;               \
 32         or      %tmp2, %lo(__JALAPENO_ID), %tmp2;\
 33         cmp     %tmp1, %tmp2;                   \
 34         be,pn   %icc, label;                    \
 35          nop;
 36 
 37 #define BRANCH_IF_CHEETAH_PLUS_OR_FOLLOWON(tmp1,tmp2,label)     \
 38         rdpr    %ver, %tmp1;                    \
 39         srlx    %tmp1, (32 + 16), %tmp2;        \
 40         cmp     %tmp2, CHEETAH_MANUF;           \
 41         bne,pt  %xcc, 99f;                      \
 42          sllx   %tmp1, 16, %tmp1;               \
 43         srlx    %tmp1, (32 + 16), %tmp2;        \
 44         cmp     %tmp2, CHEETAH_PLUS_IMPL;       \
 45         bgeu,pt %xcc, label;                    \
 46 99:      nop;
 47 
 48 #define BRANCH_IF_ANY_CHEETAH(tmp1,tmp2,label)  \
 49         rdpr    %ver, %tmp1;                    \
 50         srlx    %tmp1, (32 + 16), %tmp2;        \
 51         cmp     %tmp2, CHEETAH_MANUF;           \
 52         bne,pt  %xcc, 99f;                      \
 53          sllx   %tmp1, 16, %tmp1;               \
 54         srlx    %tmp1, (32 + 16), %tmp2;        \
 55         cmp     %tmp2, CHEETAH_IMPL;            \
 56         bgeu,pt %xcc, label;                    \
 57 99:      nop;
 58 
 59 #endif /* !(_SPARC64_HEAD_H) */
 60 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp