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