Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM
From: Feng Tang
Date: Sat Sep 15 2018 - 12:42:40 EST
On Sat, Sep 15, 2018 at 12:29:50PM +0200, Thomas Gleixner wrote:
> On Tue, 11 Sep 2018, Feng Tang wrote:
> > Thanks for the suggestion, and I have 2 patches: one adds a build warning,
> > the other prepares fixmap page table on demand and doesn't need warning.
> The latter please.
> > But I met a problem, that the "__end_of_permanent_fixed_addresses" is
> > defined in fixmap.h, which is protected by #ifndef __ASSEMBLY__, also
> > fixmap.h reference many other header file, which makes it harder to
> > extract the definition out. Any suggestion on this? thanks!
> What prevents you from moving the enum out of the __ASSEMBLY__ protected
> section aside of a bit of careful work?
I have tried to change some header files incluing fixmap.h/apicdef.h/
vsyscall.h, and most of the .c files compile fine now, but I can not
use the "__end_of_permanent_fixed_addresses" in head_64.S as it is a
enum type, and could not be recognized by assembly code.