coreboot used to have two different "APIs" for memory accesses:

read32(unsigned long addr) vs readl(void *addr)
and
write32(unsigned long addr, uint32_t value) vs writel(uint32_t value, void *addr)

read32 was only available in __PRE_RAM__ stage, while readl was used in stage2.
Some unclean implementations then made readl available to __PRE_RAM__ too which
results in really messy includes and code.

This patch fixes all code to use the read32/write32 variant, so that we can
remove readl/writel in another patch.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5022 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer
2010-01-16 17:53:38 +00:00
committed by Stefan Reinauer
parent 984e0f3a0c
commit 9fe4d797a3
32 changed files with 264 additions and 219 deletions

View File

@ -10,7 +10,7 @@
#define COREBOOT_EXTRA_VERSION ""
#endif
static void console_init(void)
void console_init(void)
{
static const char console_test[] =
"\r\n\r\ncoreboot-"