[memmap] Allow explicit colour selection for memory map debug messages

Provide DBGC_MEMMAP() as a replacement for memmap_dump(), allowing the
colour used to match other messages within the same message group.

Retain a dedicated colour for output from memmap_dump_all(), on the
basis that it is generally most useful to visually compare full memory
dumps against previous full memory dumps.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-25 12:06:53 +01:00
parent 8d88870da5
commit 09140ab2c1
7 changed files with 36 additions and 33 deletions

View File

@@ -80,7 +80,7 @@ __asmcall void relocate ( struct i386_all_regs *ix86 ) {
* away with using just 32-bit arithmetic after this
* stage.
*/
memmap_dump ( &region );
DBGC_MEMMAP ( &region, &region );
if ( region.min > max ) {
DBGC ( &region, "...starts after max=%#08lx\n", max );
break;

View File

@@ -120,7 +120,7 @@ static void multiboot_build_memmap ( struct image *image,
/* Ignore any non-memory regions */
if ( ! ( region.flags & MEMMAP_FL_MEMORY ) )
continue;
memmap_dump ( &region );
DBGC_MEMMAP ( image, &region );
/* Check Multiboot memory map limit */
if ( ! remaining ) {