aboutsummaryrefslogtreecommitdiff
path: root/src/memmap.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-07-25 13:48:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-07-25 13:48:27 -0400
commit2929c352b73e35a32d90d0fdd7fd723591a408de (patch)
treeebb2980e71648f5d54f4dbe1f2ed3557ba7ee1d2 /src/memmap.h
parent35284962d181ed99f38d8201472d65e3aed96e19 (diff)
downloadseabios-hppa-2929c352b73e35a32d90d0fdd7fd723591a408de.zip
seabios-hppa-2929c352b73e35a32d90d0fdd7fd723591a408de.tar.gz
seabios-hppa-2929c352b73e35a32d90d0fdd7fd723591a408de.tar.bz2
Add malloc_high/fseg() and rework bios table creation to use them.
Add malloc like functions for memory management instead of open-coding memory reservation in all callers. Add ability for unused high ram to be returned for general purpose use. Break up acpi table creation into multiple functions. Also, move smbios tables into high ram (instead of f-segment).
Diffstat (limited to 'src/memmap.h')
-rw-r--r--src/memmap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/memmap.h b/src/memmap.h
index 8338c43..8df9ed0 100644
--- a/src/memmap.h
+++ b/src/memmap.h
@@ -20,12 +20,16 @@ void add_e820(u64 start, u64 size, u32 type);
void memmap_setup();
void memmap_finalize();
+void *malloc_high(u32 size);
+void *malloc_fseg(u32 size);
+void malloc_setup();
+void malloc_finalize();
+
// e820 map storage (defined in system.c)
extern struct e820entry e820_list[];
extern int e820_count;
// Space for exported bios tables (defined in misc.c)
-extern u32 bios_table_cur_addr, bios_table_end_addr;
extern char BiosTableSpace[];
#endif // e820map.h