Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4575
-gerrit
commit a3dfb7cc325c72df9c6dad11cca1f85dade5cf2e
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Thu Dec 26 22:53:52 2013 -0500
lib/hexdump: Take void * and size_t as arguments
Representing a memory location as an unsigned long is specific to
32-bit architectures. It also doesn't make sense to represent a length
assumed to be positive as a signed integer. With this change, it is no
longer necessary to cast a pointer to unsigned long when passing it to
hexdump.
Change-Id: I641777d940ceac6f37c363051f1e9c1b3ec3ed95
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
src/include/lib.h | 3 ++-
src/lib/hexdump.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/include/lib.h b/src/include/lib.h
index 5fc390a..128116c 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -22,6 +22,7 @@
#ifndef __LIB_H__
#define __LIB_H__
#include <stdint.h>
+#include <types.h>
#ifndef __PRE_RAM__ /* Conflicts with inline function in arch/io.h */
/* Defined in src/lib/clog2.c */
@@ -57,6 +58,6 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
void post_cache_as_ram(void);
/* Defined in src/lib/hexdump.c */
-void hexdump(unsigned long memory, int length);
+void hexdump(void *memory, size_t length);
#endif /* __LIB_H__ */
diff --git a/src/lib/hexdump.c b/src/lib/hexdump.c
index d24ae77..20babe4 100644
--- a/src/lib/hexdump.c
+++ b/src/lib/hexdump.c
@@ -28,7 +28,7 @@ static int isprint(int c)
return (c >= 32 && c <= 126);
}
-void hexdump(unsigned long memory, int length)
+void hexdump(void* memory, size_t length)
{
int i;
uint8_t *m;
@@ -48,7 +48,7 @@ void hexdump(unsigned long memory, int length)
}
if (all_zero < 2) {
- printk(BIOS_DEBUG, "%08lx:", memory + i);
+ printk(BIOS_DEBUG, "%p:", memory + i);
for (j = 0; j < 16; j++)
printk(BIOS_DEBUG, " %02x", m[i+j]);
printk(BIOS_DEBUG, " ");
the following patch was just integrated into master:
commit 1968572ccde2937245125bbc54d58de1f1270979
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Sun Dec 22 18:00:22 2013 +0200
AMD AGESA: Drop MEM_TRAIN_SEQ
This config was for AMD K8 only.
Change-Id: Ic1ce60041fef6ddee2dae0e3559fb78f088740af
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/4556 for details.
-gerrit
the following patch was just integrated into master:
commit f41c0bc5dc5ce55088ce6c346cf5109031436624
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Sun Dec 22 18:00:22 2013 +0200
AMD fam10: Drop MEM_TRAIN_SEQ
This config was for AMD K8 only.
Change-Id: I76276405b676d1dd4d5dbf8c5b94194a670ccb25
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/4555 for details.
-gerrit
the following patch was just integrated into master:
commit 1fb5b05b67364c3f08e9ab1bdd422b16b9bcb149
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Tue Dec 10 07:33:36 2013 +0200
AMD boards (non-AGESA): Cleanup post_cache_as_ram.c includes
Change-Id: Ib3a69e3364418426438f88ba14e5cf744e2414fa
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/4524 for details.
-gerrit
the following patch was just integrated into master:
commit 076f8ec548b563a587d96fd6cb97dcb722120f09
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Thu Dec 12 12:27:53 2013 +0200
AMD boards (non-AGESA): Cleanup earlymtrr.c includes
Change-Id: I5f4bf9dbaf3470dc83d3e980bb6cab10801e15c1
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/4523 for details.
-gerrit
the following patch was just integrated into master:
commit 41a85c4637a6bbb2662bc7b41eea965ddae2910a
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Thu Dec 12 12:27:53 2013 +0200
vortex86ex: Cleanup earlymtrr.c include
No MTRRs on this platform.
Change-Id: Iaef57c8013ae9d40f3b063aae284b3faeeaa43dd
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/4572 for details.
-gerrit