debuggers.hg

view xen/include/asm-x86/domain_page.h @ 1490:92b8e1efa784

bitkeeper revision 1.952 (40c8935a3XSRdQfnx5RoO7XgaggvOQ)

Towards x86_64 support. Merged a bunch of the existing x86_64 stuff
back into a generic 'x86' architecture. Aim is to share as much
as possible between 32- and 64-bit worlds.
author kaf24@scramble.cl.cam.ac.uk
date Thu Jun 10 16:59:06 2004 +0000 (2004-06-10)
parents
children fec8b1778268 bbe8541361dd 0a4b76b6b5a0
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 unsigned long *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__ */