[coreboot-gerrit] New patch to review for coreboot: cpu/amd/car: remove PRINTK_IN_CAR #define that was hardcoded to 1
Timothy Pearson (tpearson@raptorengineeringinc.com)
gerrit at coreboot.org
Sat Oct 24 21:11:09 CEST 2015
Timothy Pearson (tpearson at raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12184
-gerrit
commit d51b764c6ca007d5ab1debdb6f6612c45551435b
Author: Timothy Pearson <tpearson at raptorengineeringinc.com>
Date: Sat Oct 24 14:09:49 2015 -0500
cpu/amd/car: remove PRINTK_IN_CAR #define that was hardcoded to 1
Change-Id: I5139ee222a0dca7f8e62612a39d30cad7976b505
Signed-off-by: Timothy Pearson <tpearson at raptorengineeringinc.com>
---
src/cpu/amd/car/post_cache_as_ram.c | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/src/cpu/amd/car/post_cache_as_ram.c b/src/cpu/amd/car/post_cache_as_ram.c
index 230d1aa..84dd82d 100644
--- a/src/cpu/amd/car/post_cache_as_ram.c
+++ b/src/cpu/amd/car/post_cache_as_ram.c
@@ -16,13 +16,7 @@
#error "You need to set CONFIG_RAMTOP greater than 1M"
#endif
-#define PRINTK_IN_CAR 1
-
-#if PRINTK_IN_CAR
#define print_car_debug(x) printk(BIOS_DEBUG, x)
-#else
-#define print_car_debug(x)
-#endif
static size_t backup_size(void)
{
@@ -32,27 +26,21 @@ static size_t backup_size(void)
static void memcpy_(void *d, const void *s, size_t len)
{
-#if PRINTK_IN_CAR
- printk(BIOS_SPEW, " Copy [%08x-%08x] to [%08x - %08x] ... ",
+ print_car_debug(" Copy [%08x-%08x] to [%08x - %08x] ... ",
(u32) s, (u32) (s + len - 1), (u32) d, (u32) (d + len - 1));
-#endif
memcpy(d, s, len);
}
static void memset_(void *d, int val, size_t len)
{
-#if PRINTK_IN_CAR
- printk(BIOS_SPEW, " Fill [%08x-%08x] ... ", (u32) d, (u32) (d + len - 1));
-#endif
+ print_car_debug(" Fill [%08x-%08x] ... ", (u32) d, (u32) (d + len - 1));
memset(d, val, len);
}
static int memcmp_(void *d, const void *s, size_t len)
{
-#if PRINTK_IN_CAR
- printk(BIOS_SPEW, " Compare [%08x-%08x] with [%08x - %08x] ... ",
+ print_car_debug(" Compare [%08x-%08x] with [%08x - %08x] ... ",
(u32) s, (u32) (s + len - 1), (u32) d, (u32) (d + len - 1));
-#endif
return memcmp(d, s, len);
}
@@ -137,9 +125,7 @@ void cache_as_ram_new_stack (void)
{
void *resume_backup_memory = NULL;
-#if PRINTK_IN_CAR
- printk(BIOS_DEBUG, "Top about %08x ... Done\n", (u32) &resume_backup_memory);
-#endif
+ print_car_debug("Top about %08x ... Done\n", (uint32_t) &resume_backup_memory);
print_car_debug("Disabling cache as ram now\n");
disable_cache_as_ram_bsp();
More information about the coreboot-gerrit
mailing list