aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/include/memsizes.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2016-02-16 15:19:01 +0000
committerMichael Brown <mcb30@ipxe.org>2016-02-16 19:32:32 +0000
commitf468f12b1eca15e703aa2a79f1c82969c04c2322 (patch)
treef1868e6cb7debaeb7aca59e4488b603fcc6481d7 /src/arch/x86/include/memsizes.h
parent43515f9f1a3e3bfaa9171f4711ed0aafef1caf06 (diff)
downloadipxe-f468f12b1eca15e703aa2a79f1c82969c04c2322.zip
ipxe-f468f12b1eca15e703aa2a79f1c82969c04c2322.tar.gz
ipxe-f468f12b1eca15e703aa2a79f1c82969c04c2322.tar.bz2
[bios] Add bin-x86_64-pcbios build platform
Move most arch/i386 files to arch/x86, and adjust the contents of the Makefiles and the include/bits/*.h headers to reflect the new locations. This patch makes no substantive code changes, as can be seen using a rename-aware diff (e.g. "git show -M5"). This patch does not make the pcbios platform functional for x86_64; it merely allows it to compile without errors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/include/memsizes.h')
-rw-r--r--src/arch/x86/include/memsizes.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/arch/x86/include/memsizes.h b/src/arch/x86/include/memsizes.h
new file mode 100644
index 0000000..f115f75
--- /dev/null
+++ b/src/arch/x86/include/memsizes.h
@@ -0,0 +1,19 @@
+#ifndef _MEMSIZES_H
+#define _MEMSIZES_H
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+#include <basemem.h>
+
+/**
+ * Get size of base memory from BIOS free base memory counter
+ *
+ * @ret basemem Base memory size, in kB
+ */
+static inline unsigned int basememsize ( void ) {
+ return get_fbms();
+}
+
+extern unsigned int extmemsize ( void );
+
+#endif /* _MEMSIZES_H */