From fcb758c9e7237710fb63ac7c6bc16f5461b138ae Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Fri, 19 Apr 2013 20:09:42 +0200 Subject: kern/slab: move internal data to slab_i.h As it's done for other modules, this separation makes the public interface easy to identify. --- kern/slab.c | 57 --------------------------------------------------------- 1 file changed, 57 deletions(-) (limited to 'kern/slab.c') diff --git a/kern/slab.c b/kern/slab.c index cc0c8a8..2ab64fe 100644 --- a/kern/slab.c +++ b/kern/slab.c @@ -134,28 +134,6 @@ */ #define KMEM_CPU_POOL_TRANSFER_RATIO 2 -/* - * Redzone guard word. - */ -#ifdef __LP64__ -#if _HOST_BIG_ENDIAN -#define KMEM_REDZONE_WORD 0xfeedfacefeedfaceUL -#else /* _HOST_BIG_ENDIAN */ -#define KMEM_REDZONE_WORD 0xcefaedfecefaedfeUL -#endif /* _HOST_BIG_ENDIAN */ -#else /* __LP64__ */ -#if _HOST_BIG_ENDIAN -#define KMEM_REDZONE_WORD 0xfeedfaceUL -#else /* _HOST_BIG_ENDIAN */ -#define KMEM_REDZONE_WORD 0xcefaedfeUL -#endif /* _HOST_BIG_ENDIAN */ -#endif /* __LP64__ */ - -/* - * Redzone byte for padding. - */ -#define KMEM_REDZONE_BYTE 0xbb - /* * Size of the VM submap from which default backend functions allocate. */ @@ -171,41 +149,6 @@ */ #define KALLOC_NR_CACHES 13 -/* - * Values the buftag state member can take. - */ -#ifdef __LP64__ -#if _HOST_BIG_ENDIAN -#define KMEM_BUFTAG_ALLOC 0xa110c8eda110c8edUL -#define KMEM_BUFTAG_FREE 0xf4eeb10cf4eeb10cUL -#else /* _HOST_BIG_ENDIAN */ -#define KMEM_BUFTAG_ALLOC 0xedc810a1edc810a1UL -#define KMEM_BUFTAG_FREE 0x0cb1eef40cb1eef4UL -#endif /* _HOST_BIG_ENDIAN */ -#else /* __LP64__ */ -#if _HOST_BIG_ENDIAN -#define KMEM_BUFTAG_ALLOC 0xa110c8edUL -#define KMEM_BUFTAG_FREE 0xf4eeb10cUL -#else /* _HOST_BIG_ENDIAN */ -#define KMEM_BUFTAG_ALLOC 0xedc810a1UL -#define KMEM_BUFTAG_FREE 0x0cb1eef4UL -#endif /* _HOST_BIG_ENDIAN */ -#endif /* __LP64__ */ - -/* - * Free and uninitialized patterns. - * - * These values are unconditionnally 64-bit wide since buffers are at least - * 8-byte aligned. - */ -#if _HOST_BIG_ENDIAN -#define KMEM_FREE_PATTERN 0xdeadbeefdeadbeefULL -#define KMEM_UNINIT_PATTERN 0xbaddcafebaddcafeULL -#else /* _HOST_BIG_ENDIAN */ -#define KMEM_FREE_PATTERN 0xefbeaddeefbeaddeULL -#define KMEM_UNINIT_PATTERN 0xfecaddbafecaddbaULL -#endif /* _HOST_BIG_ENDIAN */ - /* * Options for kmem_cache_alloc_verify(). */ -- cgit v1.2.3