debuggers.hg

view xen/include/asm-x86/x86_32/domain_page.h @ 3632:fec8b1778268

bitkeeper revision 1.1159.212.60 (41febc4bKKSkh9u-Zes9v2CmBuLZxA)

More bootstrap fixes for x86/64. Next thing to do is sort out the IDT and
get traps.c working; then we can get rid of a bunch of dummy labels from
end of boot/x86_64.S. We're also going to need some kind of entry.S before
we can safely enable interrupts. Also bear in mind that not all of physical
RAM may be mapped (only first 1GB) and no m2p table is yet allocated or
mapped. Plenty to be done!
author kaf24@viper.(none)
date Mon Jan 31 23:16:27 2005 +0000 (2005-01-31)
parents
children bbe8541361dd
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__ */