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=6299cb929a586fd8debcc316c1ede714d5b95979;hp=0000000000000000000000000000000000000000;hpb=e9e3ee43cb302909917b5919f6043347b73c6995;p=palacios.releases.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