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

TOMOYO Linux Cross Reference
Linux/arch/ia64/include/asm/sn/mspec.h

Version: ~ [ linux-5.5-rc1 ] ~ [ linux-5.4.2 ] ~ [ linux-5.3.15 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.88 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.158 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.206 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.206 ] ~ [ 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.78 ] ~ [ 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-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ 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 /*
  2  *
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  *
  7  * Copyright (c) 2001-2008 Silicon Graphics, Inc.  All rights reserved.
  8  */
  9 
 10 #ifndef _ASM_IA64_SN_MSPEC_H
 11 #define _ASM_IA64_SN_MSPEC_H
 12 
 13 #define FETCHOP_VAR_SIZE 64 /* 64 byte per fetchop variable */
 14 
 15 #define FETCHOP_LOAD            0
 16 #define FETCHOP_INCREMENT       8
 17 #define FETCHOP_DECREMENT       16
 18 #define FETCHOP_CLEAR           24
 19 
 20 #define FETCHOP_STORE           0
 21 #define FETCHOP_AND             24
 22 #define FETCHOP_OR              32
 23 
 24 #define FETCHOP_CLEAR_CACHE     56
 25 
 26 #define FETCHOP_LOAD_OP(addr, op) ( \
 27          *(volatile long *)((char*) (addr) + (op)))
 28 
 29 #define FETCHOP_STORE_OP(addr, op, x) ( \
 30          *(volatile long *)((char*) (addr) + (op)) = (long) (x))
 31 
 32 #ifdef __KERNEL__
 33 
 34 /*
 35  * Each Atomic Memory Operation (amo, formerly known as fetchop)
 36  * variable is 64 bytes long.  The first 8 bytes are used.  The
 37  * remaining 56 bytes are unaddressable due to the operation taking
 38  * that portion of the address.
 39  *
 40  * NOTE: The amo structure _MUST_ be placed in either the first or second
 41  * half of the cache line.  The cache line _MUST NOT_ be used for anything
 42  * other than additional amo entries.  This is because there are two
 43  * addresses which reference the same physical cache line.  One will
 44  * be a cached entry with the memory type bits all set.  This address
 45  * may be loaded into processor cache.  The amo will be referenced
 46  * uncached via the memory special memory type.  If any portion of the
 47  * cached cache-line is modified, when that line is flushed, it will
 48  * overwrite the uncached value in physical memory and lead to
 49  * inconsistency.
 50  */
 51 struct amo {
 52         u64 variable;
 53         u64 unused[7];
 54 };
 55 
 56 
 57 #endif /* __KERNEL__ */
 58 
 59 #endif /* _ASM_IA64_SN_MSPEC_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