summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-03-29 21:56:26 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-29 21:56:26 +0000
commit86b6dba7eaea79c1d9f485396bd6b5ea24088160 (patch)
tree28ca00641922359889a9b6141bc47313918badb9 /src
parent8655412673f650839fa659849da6e356895524ae (diff)
trivial warning cleanups
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5318 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/cpu/amd/model_gx2/syspreinit.c9
-rw-r--r--src/cpu/amd/model_lx/syspreinit.c2
-rw-r--r--src/northbridge/amd/lx/raminit.c3
3 files changed, 8 insertions, 6 deletions
diff --git a/src/cpu/amd/model_gx2/syspreinit.c b/src/cpu/amd/model_gx2/syspreinit.c
index e3ad95235d..c6b2ea527c 100644
--- a/src/cpu/amd/model_gx2/syspreinit.c
+++ b/src/cpu/amd/model_gx2/syspreinit.c
@@ -7,15 +7,16 @@
/* * Destroys: Al,*/
/* **/
/* ***************************************************************************/
-void
-StartTimer1(void){
+static void
+StartTimer1(void)
+{
outb(0x56, 0x43);
outb(0x12, 0x41);
}
void
-SystemPreInit(void){
-
+SystemPreInit(void)
+{
/* they want a jump ... */
__asm__("jmp .+2\ninvd\njmp.+2\n");
StartTimer1();
diff --git a/src/cpu/amd/model_lx/syspreinit.c b/src/cpu/amd/model_lx/syspreinit.c
index 53cd4aa9c9..33c6ece942 100644
--- a/src/cpu/amd/model_lx/syspreinit.c
+++ b/src/cpu/amd/model_lx/syspreinit.c
@@ -29,7 +29,7 @@
/* * Destroys: Al,*/
/* **/
/* ***************************************************************************/
-void StartTimer1(void)
+static void StartTimer1(void)
{
outb(0x56, 0x43);
outb(0x12, 0x41);
diff --git a/src/northbridge/amd/lx/raminit.c b/src/northbridge/amd/lx/raminit.c
index aafcde257a..d22efa61c0 100644
--- a/src/northbridge/amd/lx/raminit.c
+++ b/src/northbridge/amd/lx/raminit.c
@@ -27,8 +27,9 @@ static const unsigned char NumColAddr[] = {
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
};
-void banner(const char *s)
+static void banner(const char *s)
{
+ /* This is so ugly. */
print_debug("===========================");
print_debug(s);
print_debug("======================================\r\n");