diff options
author | Matt Fleming <matt.fleming@intel.com> | 2011-11-10 10:23:27 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2011-12-16 16:31:18 +0000 |
commit | a941bb474f0c7044edb66eaed3199501215081a0 (patch) | |
tree | 4b00e7149d5343aa9bd52ba6c01938a0d16290d5 /com32/lib/syslinux/memscan.c | |
parent | 89dc4795d95247b36a4dd85cbcd11ca52371c57c (diff) | |
download | syslinux-a941bb474f0c7044edb66eaed3199501215081a0.tar.gz |
core: Add firmware backend support
In an upcoming patch series we're going to need to abstract the
firmware operations because they will be provided by both BIOS and
EFI.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/lib/syslinux/memscan.c')
-rw-r--r-- | com32/lib/syslinux/memscan.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/com32/lib/syslinux/memscan.c b/com32/lib/syslinux/memscan.c index fc676cbf..ccd0e5cc 100644 --- a/com32/lib/syslinux/memscan.c +++ b/com32/lib/syslinux/memscan.c @@ -40,6 +40,7 @@ #include <com32.h> #include <syslinux/memscan.h> +#include <syslinux/firmware.h> struct e820_entry { uint64_t start; @@ -47,7 +48,7 @@ struct e820_entry { uint32_t type; }; -int syslinux_scan_memory(scan_memory_callback_t callback, void *data) +int bios_scan_memory(scan_memory_callback_t callback, void *data) { static com32sys_t ireg; com32sys_t oreg; @@ -156,3 +157,8 @@ int syslinux_scan_memory(scan_memory_callback_t callback, void *data) return 0; } + +int syslinux_scan_memory(scan_memory_callback_t callback, void *data) +{ + return firmware->scan_memory(callback, data); +} |