Skip to content
Commit 37cc8d7f authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Ingo Molnar
Browse files

x86/early_ioremap: don't assume we're using swapper_pg_dir



At the early stages of boot, before the kernel pagetable has been
fully initialized, a Xen kernel will still be running off the
Xen-provided pagetables rather than swapper_pg_dir[].  Therefore,
readback cr3 to determine the base of the pagetable rather than
assuming swapper_pg_dir[].

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Tested-by: default avatarJody Belka <knew-linux@pimb.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 416e2d63
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment