diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-01-21 01:14:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-02-05 20:00:29 -0500 |
commit | d83c87bb20a8ac5faf80ead44ff8dc793bf25a84 (patch) | |
tree | 507ec4bf6d5885feb915f41807c18c3437ab7d3d /src/pmm.c | |
parent | 88ab34e2cfbed34a848be8ec45248cf291c37049 (diff) | |
download | seabios-hppa-d83c87bb20a8ac5faf80ead44ff8dc793bf25a84.zip seabios-hppa-d83c87bb20a8ac5faf80ead44ff8dc793bf25a84.tar.gz seabios-hppa-d83c87bb20a8ac5faf80ead44ff8dc793bf25a84.tar.bz2 |
Normalize POST initialization function name suffixes.
The POST phase has to invoke many initialization functions, and these
functions can have complex inter-dependencies. Try to categorize the
functions into 4 classes:
preinit - functions called very early in POST where function ordering
is very important and the code has limited access to other
interfaces.
init - functions that initialize internal interfaces and standard
external interfaces. This code is generally not dependent on
particular hardware and typically does not communicate directly
with any hardware devices.
setup - functions which access hardware or are dependent on particular
hardware or platform devices.
prepboot - functions that finalize internal interfaces and that
prepare for the boot phase.
This patch attempts to normalize the suffixes - functions that used
_init(), _setup(), _finalize(), or similar that did not follow the
above pattern were renamed. Other than function name changes, there
should be no code impact to this patch.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pmm.c')
-rw-r--r-- | src/pmm.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -217,7 +217,7 @@ rom_confirm(u32 size) ****************************************************************/ void -malloc_setup(void) +malloc_preinit(void) { ASSERT32FLAT(); dprintf(3, "malloc setup\n"); @@ -258,7 +258,7 @@ malloc_setup(void) // Update pointers after code relocation. void -malloc_fixupreloc(void) +malloc_fixupreloc_init(void) { ASSERT32FLAT(); if (!CONFIG_RELOCATE_INIT) @@ -281,7 +281,7 @@ malloc_fixupreloc(void) } void -malloc_finalize(void) +malloc_prepboot(void) { ASSERT32FLAT(); dprintf(3, "malloc finalize\n"); @@ -545,7 +545,7 @@ handle_pmm(u16 *args) } void -pmm_setup(void) +pmm_init(void) { if (! CONFIG_PMM) return; @@ -557,7 +557,7 @@ pmm_setup(void) } void -pmm_finalize(void) +pmm_prepboot(void) { if (! CONFIG_PMM) return; |