Re: [PATCH] x86/microcode_intel_early.c: Get 32-bit physical addressby __pa_nodebug()

From: H. Peter Anvin
Date: Thu Mar 21 2013 - 10:33:03 EST


On 03/21/2013 03:40 AM, Ingo Molnar wrote:
>
> * Fenghua Yu <fenghua.yu@xxxxxxxxx> wrote:
>
>> + initrd_start_p = (unsigned long *)__pa_nodebug(&initrd_start);
>> + initrd_start_addr = (unsigned long)__pa_nodebug(*initrd_start_p);
>
> We should probably use __pa_early() for that - aliased to __pa_nodebug().
> That would self-document the purpose.
>

Well, it's not that it is early, it is that it actually can execute in
linear mode (paging off).

-hpa


--
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/