lkml.org 
[lkml]   [2018]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/5] x86/boot/compressed/64: Find a place for 32-bit trampoline
On Mon, Feb 26, 2018 at 11:30:38PM +0100, Borislav Petkov wrote:
> 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.

Okay, I'll fix this.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2018-02-27 09:15    [W:0.076 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site