diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-22 11:42:32 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-22 11:42:32 +0000 |
commit | c02b4fc9db3c3c1e263027382697b566127f66bb (patch) | |
tree | 11bd18488e360e5c1beeb9ccb852ef4489c3689a /src/cpu/amd/model_gx2 | |
parent | 27852aba6787617ca5656995cbc7e8ef0a3ea22c (diff) |
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
Diffstat (limited to 'src/cpu/amd/model_gx2')
-rw-r--r-- | src/cpu/amd/model_gx2/cpubug.c | 10 | ||||
-rw-r--r-- | src/cpu/amd/model_gx2/model_gx2_init.c | 4 | ||||
-rw-r--r-- | src/cpu/amd/model_gx2/vsmsetup.c | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/cpu/amd/model_gx2/cpubug.c b/src/cpu/amd/model_gx2/cpubug.c index 8bbbf7b700..fcee30bb23 100644 --- a/src/cpu/amd/model_gx2/cpubug.c +++ b/src/cpu/amd/model_gx2/cpubug.c @@ -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"); } diff --git a/src/cpu/amd/model_gx2/model_gx2_init.c b/src/cpu/amd/model_gx2/model_gx2_init.c index 580b04c7bd..435e89aa81 100644 --- a/src/cpu/amd/model_gx2/model_gx2_init.c +++ b/src/cpu/amd/model_gx2/model_gx2_init.c @@ -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 = { diff --git a/src/cpu/amd/model_gx2/vsmsetup.c b/src/cpu/amd/model_gx2/vsmsetup.c index 7fa33fc0c2..aa25042a61 100644 --- a/src/cpu/amd/model_gx2/vsmsetup.c +++ b/src/cpu/amd/model_gx2/vsmsetup.c @@ -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"); } |