Re: [PATCH] x86: tell the world boot_params is 16-byte aligned

From: H. Peter Anvin
Date: Fri May 08 2015 - 14:37:12 EST


On 05/08/2015 10:40 AM, Borislav Petkov wrote:
> On Fri, May 08, 2015 at 09:26:49AM -0700, H. Peter Anvin wrote:
>> NAK. This could break in the case of careless bootloaders...
>
> Please elaborate. You mean, they'll go with the max alignment too and
> search boot_params there?
>

A careless bootloader may not align this data structure to any
particular alignment.

Of course, for x86 it doesn't matter too much, as it just hurts performance.

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