Index: kernel/generic/include/mm/slab.h
===================================================================
--- kernel/generic/include/mm/slab.h	(revision 05641a9edbf1f7a46db1517a8e99aa0ffa7bdd5d)
+++ kernel/generic/include/mm/slab.h	(revision c3ebc47808497be5b06d4cc84b2406a50fbbc76f)
@@ -42,8 +42,8 @@
 
 /** Minimum size to be allocated by malloc */
-#define SLAB_MIN_MALLOC_W 4
+#define SLAB_MIN_MALLOC_W  4
 
 /** Maximum size to be allocated by malloc */
-#define SLAB_MAX_MALLOC_W 18
+#define SLAB_MAX_MALLOC_W  22
 
 /** Initial Magazine size (TODO: dynamically growing magazines) */
@@ -51,8 +51,8 @@
 
 /** If object size is less, store control structure inside SLAB */
-#define SLAB_INSIDE_SIZE   (PAGE_SIZE >> 3)
+#define SLAB_INSIDE_SIZE  (PAGE_SIZE >> 3)
 
 /** Maximum wasted space we allow for cache */
-#define SLAB_MAX_BADNESS(cache)	\
+#define SLAB_MAX_BADNESS(cache) \
 	(((unsigned int) PAGE_SIZE << (cache)->order) >> 2)
 
@@ -65,15 +65,15 @@
 
 /** Do not use per-cpu cache */
-#define SLAB_CACHE_NOMAGAZINE 0x1
+#define SLAB_CACHE_NOMAGAZINE   0x01
 /** Have control structure inside SLAB */
-#define SLAB_CACHE_SLINSIDE   0x2
+#define SLAB_CACHE_SLINSIDE     0x02
 /** We add magazine cache later, if we have this flag */
-#define SLAB_CACHE_MAGDEFERRED (0x4 | SLAB_CACHE_NOMAGAZINE)
+#define SLAB_CACHE_MAGDEFERRED  (0x04 | SLAB_CACHE_NOMAGAZINE)
 
 typedef struct {
 	link_t link;
-	count_t busy;	/**< Count of full slots in magazine */
-	count_t size;	/**< Number of slots in magazine */
-	void *objs[];	/**< Slots in magazine */
+	count_t busy;  /**< Count of full slots in magazine */
+	count_t size;  /**< Number of slots in magazine */
+	void *objs[];  /**< Slots in magazine */
 } slab_magazine_t;
 
@@ -87,21 +87,21 @@
 typedef struct {
 	char *name;
-
+	
 	link_t link;
-
+	
 	/* Configuration */
 	/** Size of slab position - align_up(sizeof(obj)) */
 	size_t size;
-
+	
 	int (*constructor)(void *obj, int kmflag);
 	int (*destructor)(void *obj);
-
+	
 	/** Flags changing behaviour of cache */
 	int flags;
-
+	
 	/* Computed values */
-	uint8_t order;			/**< Order of frames to be allocated */
-	unsigned int objects;		/**< Number of objects that fit in */
-
+	uint8_t order;         /**< Order of frames to be allocated */
+	unsigned int objects;  /**< Number of objects that fit in */
+	
 	/* Statistics */
 	atomic_t allocated_slabs;
@@ -110,13 +110,13 @@
 	/** How many magazines in magazines list */
 	atomic_t magazine_counter; 
-
+	
 	/* Slabs */
-	link_t full_slabs;	/**< List of full slabs */
-	link_t partial_slabs;	/**< List of partial slabs */
+	link_t full_slabs;     /**< List of full slabs */
+	link_t partial_slabs;  /**< List of partial slabs */
 	SPINLOCK_DECLARE(slablock);
-	/* Magazines  */
-	link_t magazines;	/**< List o full magazines */
+	/* Magazines */
+	link_t magazines;  /**< List o full magazines */
 	SPINLOCK_DECLARE(maglock);
-
+	
 	/** CPU cache */
 	slab_mag_cache_t *mag_cache;
@@ -142,4 +142,5 @@
 extern void *realloc(void *, unsigned int, int);
 extern void free(void *);
+
 #endif
 
Index: kernel/generic/src/mm/slab.c
===================================================================
--- kernel/generic/src/mm/slab.c	(revision 05641a9edbf1f7a46db1517a8e99aa0ffa7bdd5d)
+++ kernel/generic/src/mm/slab.c	(revision c3ebc47808497be5b06d4cc84b2406a50fbbc76f)
@@ -130,5 +130,5 @@
 /** Caches for malloc */
 static slab_cache_t *malloc_caches[SLAB_MAX_MALLOC_W - SLAB_MIN_MALLOC_W + 1];
-char *malloc_names[] =  {
+static char *malloc_names[] =  {
 	"malloc-16",
 	"malloc-32",
@@ -145,5 +145,9 @@
 	"malloc-64K",
 	"malloc-128K",
-	"malloc-256K"
+	"malloc-256K",
+	"malloc-512K",
+	"malloc-1M",
+	"malloc-2M",
+	"malloc-4M"
 };
 
