Restore the definition of EFI_STAGING_SIZE
The definition can be overridden by users, and before f75caed644
it
was in MBs. Make the symbol' unit MB, to be compatible with users
customizations.
Reported and tested by: Harry Schmalzbauer <freebsd@omnilan.de>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
This commit is contained in:
parent
f19063ab02
commit
b850806921
@ -180,9 +180,9 @@ efi_verify_staging_size(unsigned long *nr_pages)
|
||||
|
||||
#ifndef EFI_STAGING_SIZE
|
||||
#if defined(__arm__)
|
||||
#define EFI_STAGING_SIZE M(32)
|
||||
#define EFI_STAGING_SIZE 32
|
||||
#else
|
||||
#define EFI_STAGING_SIZE M(64)
|
||||
#define EFI_STAGING_SIZE 64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -315,7 +315,7 @@ efi_copy_init(void)
|
||||
EFI_STATUS status;
|
||||
unsigned long nr_pages;
|
||||
|
||||
nr_pages = EFI_SIZE_TO_PAGES((EFI_STAGING_SIZE));
|
||||
nr_pages = EFI_SIZE_TO_PAGES(M(1) * (EFI_STAGING_SIZE));
|
||||
|
||||
#if defined(__i386__) || defined(__amd64__)
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user