fix some amd k8 warnings

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5336 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2010-03-30 22:03:10 +00:00 committed by Stefan Reinauer
parent cca626817d
commit 23a3e79405
2 changed files with 5 additions and 9 deletions

View File

@ -518,11 +518,7 @@ struct sys_info {
uint32_t sbbusn;
} __attribute__((packed));
#ifdef __PRE_RAM__
static void soft_reset(void);
#else
void hard_reset(void);
#endif
#include <reset.h>
static void wait_all_core0_mem_trained(struct sys_info *sysinfo)
{

View File

@ -122,7 +122,7 @@ static int r_link(u32 reg)
*/
static void showdram(int level, u8 which, u32 base, u32 lim)
{
do_printk(level, "DRAM(%02x)%010llx-%010llx, ->(%d), %s, %s, %s, %d\n",
printk(level, "DRAM(%02x)%010llx-%010llx, ->(%d), %s, %s, %s, %d\n",
which, (((u64) base & 0xffff0000) << 8),
(((u64) lim & 0xffff0000) << 8) + 0xffffff,
r_node(lim), re(base), we(base), ileave(base), (lim >> 8) & 3);
@ -141,7 +141,7 @@ static void showdram(int level, u8 which, u32 base, u32 lim)
static void showconfig(int level, u8 which, u32 reg)
{
/* Don't use r_node() and r_link() here. */
do_printk(level, "CONFIG(%02x)%02x-%02x ->(%d,%d),%s %s (%s numbers)\n",
printk(level, "CONFIG(%02x)%02x-%02x ->(%d,%d),%s %s (%s numbers)\n",
which, BITS(reg, 16, 0xff), BITS(reg, 24, 0xff),
BITS(reg, 4, 0x7), BITS(reg, 8, 0x3),
re(reg), we(reg),
@ -161,7 +161,7 @@ static void showconfig(int level, u8 which, u32 reg)
*/
static void showpciio(int level, u8 which, u32 base, u32 lim)
{
do_printk(level, "PCIIO(%02x)%07x-%07x, ->(%d,%d), %s, %s,VGA %d ISA %d\n",
printk(level, "PCIIO(%02x)%07x-%07x, ->(%d,%d), %s, %s,VGA %d ISA %d\n",
which, BITS(base, 12, 0x3fff) << 12,
(BITS(lim, 12, 0x3fff) << 12) + 0xfff, r_node(lim), r_link(lim),
re(base), we(base), BITS(base, 4, 0x1), BITS(base, 5, 0x1));
@ -180,7 +180,7 @@ static void showpciio(int level, u8 which, u32 base, u32 lim)
*/
static void showmmio(int level, u8 which, u32 base, u32 lim)
{
do_printk(level, "MMIO(%02x)%010llx-%010llx, ->(%d,%d), %s, %s, "
printk(level, "MMIO(%02x)%010llx-%010llx, ->(%d,%d), %s, %s, "
"CPU disable %d, Lock %d, Non posted %d\n",
which, ((u64) BITS(base, 0, 0xffffff00)) << 8,
(((u64) BITS(lim, 0, 0xffffff00)) << 8) + 0xffff, r_node(lim),