diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 689f828d6a..98d18f237a 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -402,7 +402,9 @@ void *__init bootstrap_map(const module_t *mod) if ( !mod ) { - destroy_xen_mappings(BOOTSTRAP_MAP_BASE, BOOTSTRAP_MAP_LIMIT); + map_pages_to_xen(BOOTSTRAP_MAP_BASE, INVALID_MFN, + PFN_DOWN(map_cur - BOOTSTRAP_MAP_BASE), + _PAGE_NONE); map_cur = BOOTSTRAP_MAP_BASE; return NULL; }