Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f403fa9 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by H. Peter Anvin
Browse files

x86, fixmap: add CONFIG_EFI



Impact: new fixmap allocation

FIX_EFI_IO_MAP_FIRST_PAGE is used only when EFI is enabled.

Signed-off-by: default avatarGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Acked-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 2ae38daf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,7 +16,9 @@
#include <asm/apicdef.h>
#include <asm/page.h>
#include <asm/vsyscall.h>
#ifdef CONFIG_EFI
#include <asm/efi.h>
#endif

/*
 * Here we define all the compile-time 'special' virtual
@@ -47,9 +49,11 @@ enum fixed_addresses {
	FIX_IO_APIC_BASE_0,
	FIX_IO_APIC_BASE_END = FIX_IO_APIC_BASE_0 + MAX_IO_APICS - 1,
#endif
#ifdef CONFIG_EFI
	FIX_EFI_IO_MAP_LAST_PAGE,
	FIX_EFI_IO_MAP_FIRST_PAGE = FIX_EFI_IO_MAP_LAST_PAGE
				  + MAX_EFI_IO_PAGES - 1,
#endif
#ifdef CONFIG_PARAVIRT
	FIX_PARAVIRT_BOOTMAP,
#endif