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

TOMOYO Linux Cross Reference
Linux/arch/sparc/include/uapi/asm/uctx.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 WITH Linux-syscall-note */
  2 /*
  3  * uctx.h: Sparc64 {set,get}context() register state layouts.
  4  *
  5  * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
  6  */
  7 
  8 #ifndef __SPARC64_UCTX_H
  9 #define __SPARC64_UCTX_H
 10 
 11 #define MC_TSTATE       0
 12 #define MC_PC           1
 13 #define MC_NPC          2
 14 #define MC_Y            3
 15 #define MC_G1           4
 16 #define MC_G2           5
 17 #define MC_G3           6
 18 #define MC_G4           7
 19 #define MC_G5           8
 20 #define MC_G6           9
 21 #define MC_G7           10
 22 #define MC_O0           11
 23 #define MC_O1           12
 24 #define MC_O2           13
 25 #define MC_O3           14
 26 #define MC_O4           15
 27 #define MC_O5           16
 28 #define MC_O6           17
 29 #define MC_O7           18
 30 #define MC_NGREG        19
 31 
 32 typedef unsigned long mc_greg_t;
 33 typedef mc_greg_t mc_gregset_t[MC_NGREG];
 34 
 35 #define MC_MAXFPQ       16
 36 struct mc_fq {
 37         unsigned long   *mcfq_addr;
 38         unsigned int    mcfq_insn;
 39 };
 40 
 41 struct mc_fpu {
 42         union {
 43                 unsigned int    sregs[32];
 44                 unsigned long   dregs[32];
 45                 long double     qregs[16];
 46         } mcfpu_fregs;
 47         unsigned long   mcfpu_fsr;
 48         unsigned long   mcfpu_fprs;
 49         unsigned long   mcfpu_gsr;
 50         struct mc_fq    *mcfpu_fq;
 51         unsigned char   mcfpu_qcnt;
 52         unsigned char   mcfpu_qentsz;
 53         unsigned char   mcfpu_enab;
 54 };
 55 typedef struct mc_fpu mc_fpu_t;
 56 
 57 typedef struct {
 58         mc_gregset_t    mc_gregs;
 59         mc_greg_t       mc_fp;
 60         mc_greg_t       mc_i7;
 61         mc_fpu_t        mc_fpregs;
 62 } mcontext_t;
 63 
 64 struct ucontext {
 65         struct ucontext         *uc_link;
 66         unsigned long           uc_flags;
 67         sigset_t                uc_sigmask;
 68         mcontext_t              uc_mcontext;
 69 };
 70 typedef struct ucontext ucontext_t;
 71 
 72 #endif /* __SPARC64_UCTX_H */
 73 

~ [ 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