xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings()
authorJulien Grall <jgrall@amazon.com>
Sat, 16 Jul 2022 14:37:57 +0000 (15:37 +0100)
committerJulien Grall <julien@xen.org>
Sun, 17 Jul 2022 13:10:08 +0000 (14:10 +0100)
commit9b962e618313109882b6ca78cf1e09f43c9d6e62
treec592555cef4834c3e4bce75265b32fe2fefc0c82
parent25424d1a6b7b7e875230aba77c2f044a4883e49a
xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings()

Both destroy_xen_mappings() and modify_xen_mappings() will take in
parameter a range [start, end[. Both end should be page aligned.

Add extra ASSERT() to ensure start and end are page aligned. Take the
opportunity to rename 'v' to 's' to be consistent with the other helper.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
----
    Changes in v2:
        - Also modify prototype. Note that on x86, the first parameter
          was not matching in the declaration and prototype.
        - Add Bertrand's reviewed-by
xen/arch/arm/mm.c
xen/include/xen/mm.h