2 #define NO_MEM ((phys_clicks) 0) /* returned by alloc_mem() with mem is up */
4 /* Memory flags to pt_allocmap() and alloc_mem(). */
5 #define PAF_CLEAR 0x01 /* Clear physical memory. */
6 #define PAF_CONTIG 0x02 /* Physically contiguous. */
7 #define PAF_ALIGN64K 0x04 /* Aligned to 64k boundary. */
8 #define PAF_LOWER16MB 0x08
9 #define PAF_LOWER1MB 0x10
10 #define PAF_ALIGN16K 0x40 /* Aligned to 16k boundary. */
12 #define MARK do { if(mark) { printf("%d\n", __LINE__); } } while(0)
14 /* special value for v in pt_allocmap */
15 #define AM_AUTO ((u32_t) -1)
17 /* Compile in asserts and custom sanity checks at all? */
18 #define SANITYCHECKS 0
22 #define MEMPROTECT 0 /* Slab objects not mapped. Access with USE() */
23 #define JUNKFREE 0 /* Fill freed pages with junk */
24 #define NONCONTIGUOUS 0 /* Make phys pages max. noncontiguous */
26 /* How noisy are we supposed to be? */
30 /* Minimum stack region size - 64MB. */
31 #define MINSTACKREGION (64*1024*1024)
33 /* If so, this level: */
34 #define SCL_NONE 0 /* No sanity checks - assert()s only. */
35 #define SCL_TOP 1 /* Main loop and other high-level places. */
36 #define SCL_FUNCTIONS 2 /* Function entry/exit. */
37 #define SCL_DETAIL 3 /* Detailled steps. */
38 #define SCL_MAX 3 /* Highest value. */
40 /* Type of page allocations. */
42 #define VMP_PAGETABLE 1
45 #define VMP_CATEGORIES 4
47 /* Flags to pt_writemap(). */
48 #define WMF_OVERWRITE 0x01 /* Caller knows map may overwrite. */
49 #define WMF_WRITEFLAGSONLY 0x02 /* Copy physaddr and update flags. */
50 #define WMF_FREE 0x04 /* Free pages overwritten. */
51 #define WMF_VERIFY 0x08 /* Check pagetable contents. */
53 #define MAP_NONE 0xFFFFFFFE