printk_foo -> printk(BIOS_FOO, ...)
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@5266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
27852aba67
commit
c02b4fc9db
@@ -169,7 +169,7 @@ eng2900(void)
|
||||
{
|
||||
msr_t msr;
|
||||
|
||||
printk_debug("CPU_BUG:%s\n", __func__);
|
||||
printk(BIOS_DEBUG, "CPU_BUG:%s\n", __func__);
|
||||
/* Clear bit 43, disables the sysenter/sysexit in CPUID3 */
|
||||
msr = rdmsr(0x3003);
|
||||
msr.hi &= 0xFFFFF7FF;
|
||||
@@ -356,10 +356,10 @@ cpubug(void)
|
||||
|
||||
rev = msr.lo & 0xff;
|
||||
if (rev < 0x20) {
|
||||
printk_err("%s: rev < 0x20! bailing!\n");
|
||||
printk(BIOS_ERR, "%s: rev < 0x20! bailing!\n");
|
||||
return;
|
||||
}
|
||||
printk_debug("Doing cpubug fixes for rev 0x%x\n", rev);
|
||||
printk(BIOS_DEBUG, "Doing cpubug fixes for rev 0x%x\n", rev);
|
||||
switch(rev)
|
||||
{
|
||||
case 0x20:
|
||||
@@ -379,11 +379,11 @@ cpubug(void)
|
||||
case 0x30:
|
||||
break;
|
||||
default:
|
||||
printk_err("unknown rev %x, bailing\n", rev);
|
||||
printk(BIOS_ERR, "unknown rev %x, bailing\n", rev);
|
||||
return;
|
||||
}
|
||||
bug784();
|
||||
bug118253();
|
||||
disablememoryreadorder();
|
||||
printk_debug("Done cpubug fixes \n");
|
||||
printk(BIOS_DEBUG, "Done cpubug fixes \n");
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ static void vsm_end_post_smi(void)
|
||||
|
||||
static void model_gx2_init(device_t dev)
|
||||
{
|
||||
printk_debug("model_gx2_init\n");
|
||||
printk(BIOS_DEBUG, "model_gx2_init\n");
|
||||
|
||||
/* Turn on caching if we haven't already */
|
||||
x86_enable_cache();
|
||||
@@ -29,7 +29,7 @@ static void model_gx2_init(device_t dev)
|
||||
|
||||
vsm_end_post_smi();
|
||||
|
||||
printk_debug("model_gx2_init DONE\n");
|
||||
printk(BIOS_DEBUG, "model_gx2_init DONE\n");
|
||||
};
|
||||
|
||||
static struct device_operations cpu_dev_ops = {
|
||||
|
@@ -187,16 +187,16 @@ void do_vsmbios(void)
|
||||
unsigned char *buf;
|
||||
int i;
|
||||
|
||||
printk_err( "do_vsmbios\n");
|
||||
printk(BIOS_ERR, "do_vsmbios\n");
|
||||
/* Clear VSM BIOS data area. */
|
||||
for (i = 0x400; i < 0x500; i++)
|
||||
*(volatile unsigned char *)i = 0;
|
||||
if ((unsigned int)cbfs_load_stage("vsa") != VSA2_ENTRY_POINT) {
|
||||
printk_err("do_vsmbios: Failed to load VSA.\n");
|
||||
printk(BIOS_ERR, "do_vsmbios: Failed to load VSA.\n");
|
||||
}
|
||||
buf = VSA2_BUFFER;
|
||||
|
||||
printk_debug("buf[0x20] signature is %x:%x:%x:%x\n",
|
||||
printk(BIOS_DEBUG, "buf[0x20] signature is %x:%x:%x:%x\n",
|
||||
buf[0x20], buf[0x21], buf[0x22], buf[0x23]);
|
||||
/* Check for POST code at start of vsainit.bin. If you don't see it,
|
||||
* don't bother.
|
||||
@@ -207,7 +207,7 @@ void do_vsmbios(void)
|
||||
}
|
||||
|
||||
/* ecx gets smm, edx gets sysm. */
|
||||
printk_err("Call real_mode_switch_call_vsm\n");
|
||||
printk(BIOS_ERR, "Call real_mode_switch_call_vsm\n");
|
||||
// real_mode_switch_call_vsm(MSR_GLIU0_SMM, MSR_GLIU0_SYSMEM);
|
||||
|
||||
/* Restart Timer 1. */
|
||||
@@ -216,7 +216,7 @@ void do_vsmbios(void)
|
||||
|
||||
/* Check that VSA is running OK. */
|
||||
if (VSA_vrRead(SIGNATURE) == VSA2_SIGNATURE)
|
||||
printk_debug("do_vsmbios: VSA2 VR signature verified\n");
|
||||
printk(BIOS_DEBUG, "do_vsmbios: VSA2 VR signature verified\n");
|
||||
else
|
||||
die("FATAL: VSA2 VR signature not valid, install failed!\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user