diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-02-21 23:20:10 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-02-21 23:20:10 -0500 |
commit | 575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d (patch) | |
tree | 718b84dbf1550276c1d3eb50e487dd160a64d6d9 /src/util.h | |
parent | 0360e8e69bb3a773ceb9d2b091b62c027bca862b (diff) | |
download | seabios-hppa-575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d.zip seabios-hppa-575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d.tar.gz seabios-hppa-575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d.tar.bz2 |
Cleanup - build drive description in temp memory during init.
Remove describe_drive() mechanism for calling printf with a drive
description. Instead, have each drive build a description in
temporary ram during drive initialization.
Also, remove fields now unneeded from 'struct disk_s' - model and
cntl_info.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -385,6 +385,12 @@ static inline void *malloc_fseg(u32 size) { static inline void *malloc_tmphigh(u32 size) { return pmm_malloc(&ZoneTmpHigh, PMM_DEFAULT_HANDLE, size, MALLOC_MIN_ALIGN); } +static inline void *malloc_tmp(u32 size) { + void *ret = malloc_tmphigh(size); + if (ret) + return ret; + return pmm_malloc(&ZoneTmpLow, PMM_DEFAULT_HANDLE, size, MALLOC_MIN_ALIGN); +} static inline void *memalign_low(u32 align, u32 size) { return pmm_malloc(&ZoneLow, PMM_DEFAULT_HANDLE, size, align); } |