[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] minios: fix p2m on x86
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1234189327 0 # Node ID 1d4ce9e31fa00cda2ee31ec5af9d5d0fc6880b11 # Parent 54492bf232f74bf64768567deaa8b5e9f2a9695d minios: fix p2m on x86 15675:bf85b467ee89 Fixed p2m on x86_64, but instead broke it on x86. Signed-off-by: Samuel Thibault <samuel.thibaut@xxxxxxxxxxxx> --- extras/mini-os/arch/x86/mm.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -r 54492bf232f7 -r 1d4ce9e31fa0 extras/mini-os/arch/x86/mm.c --- a/extras/mini-os/arch/x86/mm.c Mon Feb 09 12:50:12 2009 +0000 +++ b/extras/mini-os/arch/x86/mm.c Mon Feb 09 14:22:07 2009 +0000 @@ -550,9 +550,15 @@ static void clear_bootstrap(void) void arch_init_p2m(unsigned long max_pfn) { +#ifdef __x86_64__ #define L1_P2M_SHIFT 9 #define L2_P2M_SHIFT 18 #define L3_P2M_SHIFT 27 +#else +#define L1_P2M_SHIFT 10 +#define L2_P2M_SHIFT 20 +#define L3_P2M_SHIFT 30 +#endif #define L1_P2M_ENTRIES (1 << L1_P2M_SHIFT) #define L2_P2M_ENTRIES (1 << (L2_P2M_SHIFT - L1_P2M_SHIFT)) #define L3_P2M_ENTRIES (1 << (L3_P2M_SHIFT - L2_P2M_SHIFT)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |