Commit df981edc authored by Roy Franz's avatar Roy Franz Committed by Matt Fleming

x86, efi: correct call to free_pages

Specify memory size in pages, not bytes.
Signed-off-by: default avatarRoy Franz <roy.franz@linaro.org>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 3b2f64d0
...@@ -225,7 +225,7 @@ static void low_free(unsigned long size, unsigned long addr) ...@@ -225,7 +225,7 @@ static void low_free(unsigned long size, unsigned long addr)
unsigned long nr_pages; unsigned long nr_pages;
nr_pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; nr_pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE;
efi_call_phys2(sys_table->boottime->free_pages, addr, size); efi_call_phys2(sys_table->boottime->free_pages, addr, nr_pages);
} }
static void find_bits(unsigned long mask, u8 *pos, u8 *size) static void find_bits(unsigned long mask, u8 *pos, u8 *size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment