If the log level is at least 5, print out the coreboot table entries to the console. This is useful for debugging.
Relocating coreboot bios tables Looking at type 0x10 (start: 0x0, size 4096/0x1000) Looking at type 0x1 (start: 0x1000, size 651264/0x9f000) Looking at type 0x1 (start: 0xc0000, size 2146123776/0x7feb4000) Looking at type 0x10 (start: 0x7ff74000, size 573440/0x8c000) Copying SMBIOS entry point from 0x7ff74000 to 0x000f5700 Copying ACPI RSDP from 0x7ff75000 to 0x000f56e0 Looking at type 0x2 (start: 0xb0000000, size 268435456/0x10000000) Looking at type 0x1 (start: 0x100000000, size 2147483648/0x80000000)
Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- src/fw/coreboot.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/fw/coreboot.c b/src/fw/coreboot.c index 7c0954b..96a4748 100644 --- a/src/fw/coreboot.c +++ b/src/fw/coreboot.c @@ -266,6 +266,8 @@ coreboot_platform_setup(void) int i, count = MEM_RANGE_COUNT(cbm); for (i=0; i<count; i++) { struct cb_memory_range *m = &cbm->map[i]; + dprintf(5, "Looking at type 0x%x (start: 0x%llx, size %llu/0x%llx)\n", + m->type, m->start, m->size, m->size); if (m->type == CB_MEM_TABLE) scan_tables(m->start, m->size); }
If the log level is at least 5, dump the coreboot table to the console. This is useful for debugging.
Relocating coreboot bios tables coreboot table has 6 items: 0: 0000000000000000 - 0000000000000fff = 0x10 (16) 1: 0000000000001000 - 000000000009ffff = 0x1 (1) 2: 00000000000c0000 - 000000007ff73fff = 0x1 (1) 3: 000000007ff74000 - 000000007fffffff = 0x10 (16) 4: 00000000b0000000 - 00000000bfffffff = 0x2 (2) 5: 0000000100000000 - 000000017fffffff = 0x1 (1) Looking at type 0x10 (start: 0x0, size 4096/0x1000) Looking at type 0x1 (start: 0x1000, size 651264/0x9f000) Looking at type 0x1 (start: 0xc0000, size 2146123776/0x7feb4000) Looking at type 0x10 (start: 0x7ff74000, size 573440/0x8c000) Copying SMBIOS entry point from 0x7ff74000 to 0x000f5700 Copying ACPI RSDP from 0x7ff75000 to 0x000f56e0 Looking at type 0x2 (start: 0xb0000000, size 268435456/0x10000000) Looking at type 0x1 (start: 0x100000000, size 2147483648/0x80000000)
Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- src/fw/coreboot.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/src/fw/coreboot.c b/src/fw/coreboot.c index 96a4748..7e87cac 100644 --- a/src/fw/coreboot.c +++ b/src/fw/coreboot.c @@ -264,6 +264,15 @@ coreboot_platform_setup(void)
// Scan CB_MEM_TABLE areas for bios tables. int i, count = MEM_RANGE_COUNT(cbm); + + dprintf(5, "coreboot table has %d items:\n", count); + for (i=0; i<count; i++) { + struct cb_memory_range *m = &cbm->map[i]; + u64 m_end = m->start + m->size; + dprintf(5, " %d: %016llx - %016llx = 0x%x (%d)\n", i + , m->start, m_end - 1, m->type, m->type); + } + for (i=0; i<count; i++) { struct cb_memory_range *m = &cbm->map[i]; dprintf(5, "Looking at type 0x%x (start: 0x%llx, size %llu/0x%llx)\n",