summaryrefslogtreecommitdiff
path: root/kern/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/slab.c')
-rw-r--r--kern/slab.c57
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