diff options
author | Richard Braun <rbraun@sceen.net> | 2013-04-19 20:09:42 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-28 15:48:04 +0200 |
commit | fcb758c9e7237710fb63ac7c6bc16f5461b138ae (patch) | |
tree | 2d324d0c5b52f289d8249bc638f260bc9a6baf99 /kern/slab.c | |
parent | 3d7a59680e7d500de23403ade0f5d07adaa9f229 (diff) |
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.
Diffstat (limited to 'kern/slab.c')
-rw-r--r-- | kern/slab.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/kern/slab.c b/kern/slab.c index cc0c8a8..2ab64fe 100644 --- a/kern/slab.c +++ b/kern/slab.c @@ -135,28 +135,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. */ #define KMEM_MAP_SIZE (96 * 1024 * 1024) @@ -172,41 +150,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(). */ #define KMEM_AV_NOCONSTRUCT 0 |