mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86/32: Limit bootstrap 1:1 mapping to 1GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
d8eb58d129
commit
157d4e33cd
1 file changed
+2
-2
@@ -37,10 +37,10 @@
|
||||
#include <asm/edd.h>
|
||||
|
||||
#if defined(CONFIG_X86_64)
|
||||
#define BOOTSTRAP_DIRECTMAP_END (1UL << 32)
|
||||
#define BOOTSTRAP_DIRECTMAP_END (1UL << 32) /* 4GB */
|
||||
#define maddr_to_bootstrap_virt(m) maddr_to_virt(m)
|
||||
#else
|
||||
#define BOOTSTRAP_DIRECTMAP_END HYPERVISOR_VIRT_START
|
||||
#define BOOTSTRAP_DIRECTMAP_END (1UL << 30) /* 1GB */
|
||||
#define maddr_to_bootstrap_virt(m) ((void *)(long)(m))
|
||||
#endif
|
||||
|
||||
|
||||