Re: Revert commit 5dcd14ecd4 - breaks EFI boot with SLES11 elilo.efi

From: H. Peter Anvin
Date: Wed Mar 06 2013 - 12:37:41 EST


On 03/06/2013 09:36 AM, Josh Boyer wrote:
>
> Something like this?
>
> Index: linux-2.6/arch/x86/include/asm/bootparam_utils.h
> ===================================================================
> --- linux-2.6.orig/arch/x86/include/asm/bootparam_utils.h
> +++ linux-2.6/arch/x86/include/asm/bootparam_utils.h
> @@ -20,8 +20,11 @@ static void sanitize_boot_params(struct
> if (boot_params->sentinel) {
> /*fields in boot_params are not valid, clear them */
> memset(&boot_params->olpc_ofw_header, 0,
> - (char *)&boot_params->alt_mem_k -
> + (char *)&boot_params->efi_info -
> (char *)&boot_params->olpc_ofw_header);
> memset(&boot_params->kbd_status, 0,
> (char *)&boot_params->hdr -
> (char *)&boot_params->kbd_status);
>
> I can try that in a bit.
>

Right.

-hpa


--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

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