X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=kitten%2Finclude%2Farch-x86_64%2Fcache.h;fp=kitten%2Finclude%2Farch-x86_64%2Fcache.h;h=2ad18790b1cd66b9d109a9589191183d7f9b6b36;hb=66a1a4c7a9edcd7d8bc207aca093d694a6e6b5b2;hp=0000000000000000000000000000000000000000;hpb=f7cf9c19ecb0a589dd45ae0d2c91814bd3c2acc2;p=palacios-OLD.git diff --git a/kitten/include/arch-x86_64/cache.h b/kitten/include/arch-x86_64/cache.h new file mode 100644 index 0000000..2ad1879 --- /dev/null +++ b/kitten/include/arch-x86_64/cache.h @@ -0,0 +1,17 @@ +/* + * include/arch-x86_64/cache.h + */ +#ifndef _ARCH_CACHE_H +#define _ARCH_CACHE_H + +/* L1 cache line size */ +#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT) +#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) + +/* Inter-node cache line size for NUMA systems */ +#define INTERNODE_CACHE_SHIFT (CONFIG_X86_INTERNODE_CACHE_SHIFT) +#define INTERNODE_CACHE_BYTES (1 << INTERNODE_CACHE_SHIFT) + +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) + +#endif