arm/mpu: Disable map_domain_page for MPU

There is no domheap for ARM_32. All of the RAM is mapped and VA == PA.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Hari Limaye <hari.limaye@arm.com>
Tested-by: Hari Limaye <hari.limaye@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
Ayan Kumar Halder authored and Michal Orzel committed 2025-08-22 09:55:45 +02:00
1 parent 120747f84a
commit 72042ea63b
3 files changed
+1 -47

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
config ARM_32
def_bool y
depends on "$(ARCH)" = "arm32"
select ARCH_MAP_DOMAIN_PAGE
select ARCH_MAP_DOMAIN_PAGE if MMU
config ARM_64
def_bool y
-1
View File
@@ -1,6 +1,5 @@
obj-$(CONFIG_ARM_32) += arm32/
obj-$(CONFIG_ARM_64) += arm64/
obj-$(CONFIG_ARM_32) += domain-page.o
obj-y += mm.o
obj-y += p2m.o
obj-y += setup.init.o
-45
View File
@@ -1,45 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <xen/bug.h>
#include <xen/domain_page.h>
#include <xen/mm-frame.h>
#include <xen/types.h>
void *map_domain_page_global(mfn_t mfn)
{
BUG_ON("unimplemented");
return NULL;
}
/* Map a page of domheap memory */
void *map_domain_page(mfn_t mfn)
{
BUG_ON("unimplemented");
return NULL;
}
/* Release a mapping taken with map_domain_page() */
void unmap_domain_page(const void *ptr)
{
BUG_ON("unimplemented");
}
mfn_t domain_page_map_to_mfn(const void *ptr)
{
BUG_ON("unimplemented");
return INVALID_MFN;
}
void unmap_domain_page_global(const void *va)
{
BUG_ON("unimplemented");
}
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
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.