From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751835AbeBZWbD (ORCPT ); Mon, 26 Feb 2018 17:31:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:55862 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbeBZWbC (ORCPT ); Mon, 26 Feb 2018 17:31:02 -0500 Date: Mon, 26 Feb 2018 23:30:38 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Linus Torvalds , Andy Lutomirski , Cyrill Gorcunov , Andi Kleen , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] x86/boot/compressed/64: Find a place for 32-bit trampoline Message-ID: <20180226223038.GI14140@pd.tnic> References: <20180226180451.86788-1-kirill.shutemov@linux.intel.com> <20180226180451.86788-3-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180226180451.86788-3-kirill.shutemov@linux.intel.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 09:04:48PM +0300, Kirill A. Shutemov wrote: > +++ b/arch/x86/boot/compressed/pgtable.h > @@ -0,0 +1,11 @@ > +#ifndef BOOT_COMPRESSED_PAGETABLE_H > +#define BOOT_COMPRESSED_PAGETABLE_H > + > +#define TRAMPOLINE_32BIT_SIZE (2 * PAGE_SIZE) > + > +#ifndef __ASSEMBLER__ x86 uses __ASSEMBLY__ everywhere and I see arch/x86/boot/compressed/Makefile:41:KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ so it should work here too. Even though __ASSEMBLER__ is gcc predefined. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --