Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753595Ab3CFRhj (ORCPT ); Wed, 6 Mar 2013 12:37:39 -0500 Received: from terminus.zytor.com ([198.137.202.10]:45714 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642Ab3CFRhh (ORCPT ); Wed, 6 Mar 2013 12:37:37 -0500 Message-ID: <51377ED7.1060800@zytor.com> Date: Wed, 06 Mar 2013 09:37:27 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: Josh Boyer CC: Yinghai Lu , Robin Holt , hpa@sgi.com, linux-kernel@vger.kernel.org, pjones@redhat.com Subject: Re: Revert commit 5dcd14ecd4 - breaks EFI boot with SLES11 elilo.efi References: <20130228205206.GC3438@sgi.com> <512FC697.3090608@zytor.com> <20130228210910.GD3438@sgi.com> <512FC82B.40909@zytor.com> <512FE3AE.4070903@zytor.com> <20130305081519.GA19165@sgi.com> <9bcd6241-37fd-4ae9-a997-2a5da1eaf997@email.android.com> <51377C3A.3030301@zytor.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 36 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/