Re: [Techteam] [RFC PATCH] x86-32: Start out eflags and cr4 clean

From: Daniel Drake
Date: Sat Jan 19 2013 - 07:34:30 EST


On Fri, Jan 18, 2013 at 8:35 PM, H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> wrote:
> Can we simply disable paging before mucking with CR4? The other option
> that I can see is to always enable PSE and PGE, since they are simply
> features opt-ins that don't do any harm if unused. At the same time,
> though, entering the kernel through the default_entry path with paging
> enabled is definitely not anything the kernel expects.
>
> Does this patch work for you? Since we have ditched 386 support, we can
> mimic x86-64 (yay, one more difference gone!) and just use a predefined
> value for %cr0 (the FPU flags need to change if we are on an FPU-less
> chip, but that happens during FPU probing.)

The patch fixes boot on XO-1.5. Thanks for the quick response!

Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/