From mboxrd@z Thu Jan 1 00:00:00 1970 From: joeyli Subject: Re: [PATCH -v2 4/4] x86, efi: Map runtime services 1:1 Date: Wed, 03 Jul 2013 14:19:03 +0800 Message-ID: <1372832343.26878.6.camel@linux-s257.site> References: <1371491416-11037-1-git-send-email-bp@alien8.de> <1371491416-11037-5-git-send-email-bp@alien8.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1371491416-11037-5-git-send-email-bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Borislav Petkov Cc: Linux EFI , Matt Fleming , Matthew Garrett , X86 ML , LKML , Borislav Petkov List-Id: linux-efi@vger.kernel.org =E6=96=BC =E4=B8=80=EF=BC=8C2013-06-17 =E6=96=BC 19:50 +0200=EF=BC=8CBo= rislav Petkov =E6=8F=90=E5=88=B0=EF=BC=9A > +#ifdef CONFIG_X86_64 > + efi_scratch.pgt11 =3D (pgd_t *)(unsigned long)real_mo= de_header->trampoline_pgd; > +#endif > + efi_use_11_map =3D true; > +=20 I think "efi_use_11_map =3D true" should moved to before "#endif", otherwise kernel will build fail on i586 architecture. I got build error: arch/x86/platform/efi/efi.c:1074: error: =E2=80=98efi_use_11_map=E2=80=99= undeclared (first use in this function) arch/x86/platform/efi/efi.c:1074: error: (Each undeclared identifier is= reported only once arch/x86/platform/efi/efi.c:1074: error: for each function it appears i= n.) Thanks a lot! Joey Lee From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754093Ab3GCGTg (ORCPT ); Wed, 3 Jul 2013 02:19:36 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:53391 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753452Ab3GCGTf (ORCPT ); Wed, 3 Jul 2013 02:19:35 -0400 Subject: Re: [PATCH -v2 4/4] x86, efi: Map runtime services 1:1 From: joeyli To: Borislav Petkov Cc: Linux EFI , Matt Fleming , Matthew Garrett , X86 ML , LKML , Borislav Petkov In-Reply-To: <1371491416-11037-5-git-send-email-bp@alien8.de> References: <1371491416-11037-1-git-send-email-bp@alien8.de> <1371491416-11037-5-git-send-email-bp@alien8.de> Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Jul 2013 14:19:03 +0800 Message-ID: <1372832343.26878.6.camel@linux-s257.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 於 一,2013-06-17 於 19:50 +0200,Borislav Petkov 提到: > +#ifdef CONFIG_X86_64 > + efi_scratch.pgt11 = (pgd_t *)(unsigned long)real_mode_header->trampoline_pgd; > +#endif > + efi_use_11_map = true; > + I think "efi_use_11_map = true" should moved to before "#endif", otherwise kernel will build fail on i586 architecture. I got build error: arch/x86/platform/efi/efi.c:1074: error: ‘efi_use_11_map’ undeclared (first use in this function) arch/x86/platform/efi/efi.c:1074: error: (Each undeclared identifier is reported only once arch/x86/platform/efi/efi.c:1074: error: for each function it appears in.) Thanks a lot! Joey Lee