mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/arm: setup: Calculate correctly the size of Xen
The current size of Xen is computed using _end - _start + 1. However,
_end is pointing one past the end of Xen, so the size of Xen is
off-by-one.
Signed-off-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit 08e2059fac)
This commit is contained in:
1 parent
7f5f48dff3
commit
8502a2cdcc
1 file changed
+1
-1
@@ -726,7 +726,7 @@ void __init start_xen(unsigned long boot_phys_offset,
|
||||
/* Register Xen's load address as a boot module. */
|
||||
xen_bootmodule = add_boot_module(BOOTMOD_XEN,
|
||||
(paddr_t)(uintptr_t)(_start + boot_phys_offset),
|
||||
(paddr_t)(uintptr_t)(_end - _start + 1), NULL);
|
||||
(paddr_t)(uintptr_t)(_end - _start), NULL);
|
||||
BUG_ON(!xen_bootmodule);
|
||||
|
||||
xen_paddr = get_xen_paddr();
|
||||
|
||||