Commit f37f2c0c authored by Charlie Jacobsen's avatar Charlie Jacobsen Committed by Vikram Narayanan
Browse files

Updated address space doc.

parent 6b12bac4
......@@ -66,6 +66,9 @@
#undef CONFIG_NODES_SHIFT /* force max numnodes to 1 */
/* This controls the largest kmalloc cache and the maximum allowed
* number of contiguous pages you can alloc. Please update documentation
* elsewhere if you change this. */
#undef CONFIG_FORCE_MAX_ZONEORDER
#define CONFIG_FORCE_MAX_ZONEORDER 6
......
......@@ -171,6 +171,10 @@ void lcd_unmap_page(cptr_t page_cptr, gva_t page);
* Allocates 2^order pages. These will be properly mapped in gv and gp
* address spaces (so you're done). Returns gv address of first page
* in base_out.
*
* NOTE: The maximum order is configured in liblcd-config.h under
* CONFIG_FORCE_MAX_ZONEORDER. It is currently 6 (so the largest you
* can allocate is 2^6 = 64 pages, or 256 KBs).
*/
int lcd_alloc_pages(unsigned order, gva_t *base_out);
/**
......
......@@ -310,26 +310,26 @@ static inline hpa_t hva2hpa(hva_t hva)
* | |
* : Free :
* | |
* +---------------------------+ 0x0000 0000 0150 4000
* +---------------------------+ 0x0000 0000 0150 8000
* | |
* | Heap |
* | (module mapped |
* | at the bottom) |
* : (16 MBs) :
* | |
* +---------------------------+ 0x0000 0000 0050 4000
* +---------------------------+ 0x0000 0000 0050 8000
* | Stack |
* | (4 KBs) |
* +---------------------------+ 0x0000 0000 0050 3000
* | (8 KBs) |
* +---------------------------+ 0x0000 0000 0050 6000
* | Guard page |
* | (not mapped) |
* | (4 KBs) |
* +---------------------------+ 0x0000 0000 0050 2000
* +---------------------------+ 0x0000 0000 0050 5000
* | UTCB |
* | (4 KBs) |
* +---------------------------+ 0x0000 0000 0050 1000
* | Boot Info |
* | (4 KBs) |
* +---------------------------+ 0x0000 0000 0050 4000
* | Boot info |
* | (16 KBs) |
* +---------------------------+ 0x0000 0000 0050 0000
* | Guest Virtual Page Tables |
* | (4 MBs max) |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment