panic() cleanup.
[minix.git] / servers / vm / vm.h
blob71298e3890d2a8e038ed2b821cf87d21e5c77b21
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
11 /* special value for v in pt_allocmap */
12 #define AM_AUTO ((u32_t) -1)
14 #define CLICK2ABS(v) ((v) << CLICK_SHIFT)
15 #define ABS2CLICK(a) ((a) >> CLICK_SHIFT)
17 /* Compile in asserts and custom sanity checks at all? */
18 #define SANITYCHECKS 0
19 #define VMSTATS 0
21 /* How noisy are we supposed to be? */
22 #define VERBOSE 0
24 /* Minimum stack region size - 64MB. */
25 #define MINSTACKREGION (64*1024*1024)
27 /* If so, this level: */
28 #define SCL_NONE 0 /* No sanity checks - vm_assert()s only. */
29 #define SCL_TOP 1 /* Main loop and other high-level places. */
30 #define SCL_FUNCTIONS 2 /* Function entry/exit. */
31 #define SCL_DETAIL 3 /* Detailled steps. */
32 #define SCL_MAX 3 /* Highest value. */
34 /* Type of page allocations. */
35 #define VMP_SPARE 0
36 #define VMP_PAGETABLE 1
37 #define VMP_PAGEDIR 2
38 #define VMP_SLAB 3
39 #define VMP_CATEGORIES 4
41 /* Flags to pt_writemap(). */
42 #define WMF_OVERWRITE 0x01 /* Caller knows map may overwrite. */
43 #define WMF_WRITEFLAGSONLY 0x02 /* Copy physaddr and update flags. */
44 #define WMF_FREE 0x04 /* Free pages overwritten. */
45 #define WMF_VERIFY 0x08 /* Check pagetable contents. */
47 #define MAP_NONE 0xFFFFFFFE