debuggers.hg

view xen/include/asm-x86/x86_32/domain_page.h @ 4629:6375127fdf23

bitkeeper revision 1.1311.1.1 (426641eeBv97w6sl983zxeR4Dc3Utg)

Cleanup page table handling. Add macros to access page table
entries, fixup plenty of places in the code to use the page
table types instead of "unsigned long".

Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: michael.fetterman@cl.cam.ac.uk
author mafetter@fleming.research
date Wed Apr 20 11:50:06 2005 +0000 (2005-04-20)
parents b2a62a1f2f20
children 1803018b3b05
line source
1 /******************************************************************************
2 * domain_page.h
3 *
4 * Allow temporary mapping of domain page frames into Xen space.
5 */
7 #ifndef __ASM_DOMAIN_PAGE_H__
8 #define __ASM_DOMAIN_PAGE_H__
10 #include <xen/config.h>
11 #include <xen/sched.h>
13 extern l1_pgentry_t *mapcache;
14 #define MAPCACHE_ENTRIES 1024
16 /*
17 * Maps a given physical address, returning corresponding virtual address.
18 * The entire page containing that VA is now accessible until a
19 * corresponding call to unmap_domain_mem().
20 */
21 extern void *map_domain_mem(unsigned long pa);
23 /*
24 * Pass a VA within a page previously mapped with map_domain_mem().
25 * That page will then be removed from the mapping lists.
26 */
27 extern void unmap_domain_mem(void *va);
29 #endif /* __ASM_DOMAIN_PAGE_H__ */