small trivial patch to fix return types, printk warnings

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


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@467 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-08-18 23:31:09 +00:00
commit c4d5d3861a
7 changed files with 13 additions and 12 deletions

View file

@ -152,9 +152,8 @@ void pll_reset(int manualconf, u32 pll_hi, u32 pll_lo)
msr_glcp_sys_pll = rdmsr(GLCP_SYS_RSTPLL);
printk(BIOS_DEBUG,
"_MSR GLCP_SYS_RSTPLL (%08x) value is: %08x:%08x\n",
msr_glcp_sys_pll.hi, msr_glcp_sys_pll.lo);
printk(BIOS_DEBUG, "_MSR GLCP_SYS_RSTPLL (%08x) value is: %08x:%08x\n",
GLCP_SYS_RSTPLL, msr_glcp_sys_pll.hi, msr_glcp_sys_pll.lo);
post_code(POST_PLL_INIT);
if (!(msr_glcp_sys_pll.lo & (1 << RSTPLL_LOWER_SWFLAGS_SHIFT))) {

View file

@ -59,4 +59,6 @@ int main(void)
printk(BIOS_SPEW, "Before wbinvd\n");
__asm__("wbinvd\n");
printk(BIOS_SPEW, "After wbinvd\n");
return 0;
}

View file

@ -35,7 +35,7 @@
#define SERIAL_DEV 0x30
int hardware_stage1(void)
void hardware_stage1(void)
{
void w83627hf_enable_serial(u8 dev, u8 serial, u16 iobase);
post_code(POST_START_OF_MAIN);

View file

@ -48,7 +48,7 @@ static void dbe61_msr_init(void)
wrmsr(dbe61_msr[i].reg, dbe61_msr[i].msr);
}
int hardware_stage1(void)
void hardware_stage1(void)
{
post_code(POST_START_OF_MAIN);

View file

@ -18,11 +18,13 @@
*/
/* no printk allowed until hardware is ready; hardware is ready */
/**
* start up hardware needed for stage1
*/
void hardware_stage1(void)
{
/* Nothing to do for Qemu */
}
void disable_car(void)
{

View file

@ -248,9 +248,7 @@ static void geodelx_northbridge_set_resources(struct device *dev)
for (link = 0; link < dev->links; link++) {
bus = &dev->link[link];
if (bus->children) {
printk(BIOS_DEBUG,
"my_dev_set_resources: phase4_assign_resources %d\n",
bus);
printk(BIOS_DEBUG, "my_dev_set_resources: phase4_assign_resources %p\n", bus);
phase4_assign_resources(bus);
}
}

View file

@ -123,7 +123,7 @@ static void writeglmsr(struct gliutable *gl)
msr.lo = gl->lo;
msr.hi = gl->hi;
wrmsr(gl->desc_name, msr);
printk(BIOS_SPEW, "%s: MSR 0x%08x, val 0x%08x:0x%08x\n",
printk(BIOS_SPEW, "%s: MSR 0x%08lx, val 0x%08x:0x%08x\n",
__FUNCTION__, gl->desc_name, msr.hi, msr.lo);
}
@ -175,7 +175,7 @@ static void sysmem_init(struct gliutable *gl)
msr.lo = sizebytes;
wrmsr(gl->desc_name, msr);
printk(BIOS_DEBUG, "%s: MSR 0x%08x, val 0x%08x:0x%08x\n", __FUNCTION__,
printk(BIOS_DEBUG, "%s: MSR 0x%08lx, val 0x%08x:0x%08x\n", __FUNCTION__,
gl->desc_name, msr.hi, msr.lo);
}
@ -206,7 +206,7 @@ static void SMMGL0Init(struct gliutable *gl)
msr.lo |= ((~(SMM_SIZE * 1024) + 1) >> 12) & 0xfffff;
wrmsr(gl->desc_name, msr);
printk(BIOS_DEBUG, "%s: MSR 0x%08x, val 0x%08x:0x%08x\n", __FUNCTION__,
printk(BIOS_DEBUG, "%s: MSR 0x%08lx, val 0x%08x:0x%08x\n", __FUNCTION__,
gl->desc_name, msr.hi, msr.lo);
}
@ -228,7 +228,7 @@ static void SMMGL1Init(struct gliutable *gl)
msr.lo |= ((~(SMM_SIZE * 1024) + 1) >> 12) & 0xfffff;
wrmsr(gl->desc_name, msr);
printk(BIOS_DEBUG, "%s: MSR 0x%08x, val 0x%08x:0x%08x\n", __FUNCTION__,
printk(BIOS_DEBUG, "%s: MSR 0x%08lx, val 0x%08x:0x%08x\n", __FUNCTION__,
gl->desc_name, msr.hi, msr.lo);
}