[IA64] define virt_to_mfn and mfn_to_virt

These are necessary to build w/ current xen-unstable

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
This commit is contained in:
awilliam@xenbuild.aw committed 2006-06-13 09:35:43 -06:00
1 parent 6a551e7f23
commit dcdd40d2e6
1 file changed
+4
+4
View File
@@ -28,6 +28,10 @@ extern int ia64_mfn_valid (unsigned long pfn);
#define page_to_virt(_page) maddr_to_virt(page_to_maddr(_page))
#define maddr_to_page(kaddr) mfn_to_page(((kaddr) >> PAGE_SHIFT))
/* Convert between Xen-heap virtual addresses and machine frame numbers. */
#define virt_to_mfn(va) (virt_to_maddr(va) >> PAGE_SHIFT)
#define mfn_to_virt(mfn) maddr_to_virt(mfn << PAGE_SHIFT)
#ifndef __ASSEMBLY__
typedef union xen_va {
struct {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.