mirror of https://github.com/schoebel/mars
brick_mem: show BRICK_DEBUG_MEM to other modules
This commit is contained in:
parent
6579498a4b
commit
8601114229
|
@ -13,14 +13,9 @@
|
||||||
#include "brick_say.h"
|
#include "brick_say.h"
|
||||||
#include "brick_locks.h"
|
#include "brick_locks.h"
|
||||||
|
|
||||||
#define BRICK_DEBUG_MEM 10000
|
|
||||||
#define USE_KERNEL_PAGES // currently mandatory (vmalloc does not work)
|
#define USE_KERNEL_PAGES // currently mandatory (vmalloc does not work)
|
||||||
#define ALLOW_DYNAMIC_RAISE 4096
|
#define ALLOW_DYNAMIC_RAISE 4096
|
||||||
|
|
||||||
#ifndef CONFIG_MARS_DEBUG
|
|
||||||
#undef BRICK_DEBUG_MEM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAGIC_BLOCK (int)0x8B395D7B
|
#define MAGIC_BLOCK (int)0x8B395D7B
|
||||||
#define MAGIC_BEND (int)0x8B395D7C
|
#define MAGIC_BEND (int)0x8B395D7C
|
||||||
#define MAGIC_MEM1 (int)0x8B395D7D
|
#define MAGIC_MEM1 (int)0x8B395D7D
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
|
|
||||||
#include <linux/mm_types.h>
|
#include <linux/mm_types.h>
|
||||||
|
|
||||||
|
#define BRICK_DEBUG_MEM 4096
|
||||||
|
|
||||||
|
#ifndef CONFIG_MARS_DEBUG
|
||||||
|
#undef BRICK_DEBUG_MEM
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GFP_BRICK GFP_NOIO
|
#define GFP_BRICK GFP_NOIO
|
||||||
//#define GFP_BRICK GFP_KERNEL // can lead to deadlocks!
|
//#define GFP_BRICK GFP_KERNEL // can lead to deadlocks!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue