Re: [RFC] [PATCH 10/16] x86_64: 64bit PIC ACPI wakeup
From: Vivek Goyal
Date: Mon Nov 13 2006 - 13:00:53 EST
On Mon, Nov 13, 2006 at 06:22:43PM +0100, Andi Kleen wrote:
[..]
>
> > +verify_cpu:
> > + pushl $0 # Kill any dangerous flags
> > + popfl
> > +
> > + /* minimum CPUID flags for x86-64 */
> > + /* see http://www.x86-64.org/lists/discuss/msg02971.html */
> > +#define REQUIRED_MASK1 ((1<<0)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<8)|\
> > + (1<<13)|(1<<15)|(1<<24)|(1<<25)|(1<<26))
> > +#define REQUIRED_MASK2 (1<<29)
>
> It would be much better if this least this CPUID code was in a common shared
> file with head.S
Hi Andi,
This code (verify_cpu) is called while we are still in real mode. So it has
to be present in low 1MB. Now in trampoline has been designed to switch to
64bit mode and then jump to the kernel hence kernel can be loaded anywhere
even beyond (4G). So if we move this code into say arch/x86_64/kernel/head.S
then we can't even call it.
So I think we got to leave it in trampoline only.
Thanks
Vivek
-
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/