mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
[ioapi] Move get_memmap() to the I/O API group
pcbios specific get_memmap() is used by the b44 driver making all-drivers builds fail on other platforms. Move it to the I/O API group and provide a dummy implementation on EFI. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
e3c7a1948d
commit
5bbad9c8f0
@@ -43,7 +43,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <ipxe/netdevice.h>
|
||||
#include <ipxe/ethernet.h>
|
||||
#include <ipxe/if_ether.h>
|
||||
#include <ipxe/memmap.h>
|
||||
#include "b44.h"
|
||||
|
||||
|
||||
@@ -89,6 +88,8 @@ int phys_ram_within_limit(u64 limit)
|
||||
struct memory_region *highest = NULL;
|
||||
get_memmap(&memmap);
|
||||
|
||||
if (memmap.count == 0)
|
||||
return 0;
|
||||
highest = &memmap.regions[memmap.count - 1];
|
||||
|
||||
return (highest->end < limit);
|
||||
|
||||
Reference in New Issue
Block a user