j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Sun Aug 11 09:24:27 2013 New Revision: 1200 URL: http://tracker.coreboot.org/trac/openbios/changeset/1200
Log: OFMEM: fix-up internal debugging functions
Bring these up to date so that they now work with the current version of the code.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/libopenbios/ofmem_common.c
Modified: trunk/openbios-devel/libopenbios/ofmem_common.c ============================================================================== --- trunk/openbios-devel/libopenbios/ofmem_common.c Wed Aug 7 23:22:47 2013 (r1199) +++ trunk/openbios-devel/libopenbios/ofmem_common.c Sun Aug 11 09:24:27 2013 (r1200) @@ -50,34 +50,37 @@
#if 0 static void -print_range( range_t *r, char *str ) +print_range( range_t *r, const char *str ) { printk("--- Range %s ---\n", str ); for( ; r; r=r->next ) - printk(FMT_plx " - " FMT_plx "\n", r->start, r->start + r->size - 1); + printk("%p : " FMT_plx " - " FMT_plx "\n", r, r->start, r->start + r->size - 1); printk("\n"); }
static void -print_phys_range() +print_phys_range(void) { - print_range( ofmem.phys_range, "phys" ); + ofmem_t *ofmem = ofmem_arch_get_private(); + print_range( ofmem->phys_range, "phys" ); }
static void -print_virt_range() +print_virt_range(void) { - print_range( ofmem.virt_range, "virt" ); + ofmem_t *ofmem = ofmem_arch_get_private(); + print_range( ofmem->virt_range, "virt" ); }
static void print_trans( void ) { - translation_t *t = ofmem.trans; + ofmem_t *ofmem = ofmem_arch_get_private(); + translation_t *t = ofmem->trans;
printk("--- Translations ---\n"); for( ; t; t=t->next ) - printk("%08lx -> " FMT_plx " [size %lx]\n", t->virt, t->phys, t->size); + printk("%p : " FMT_ucellx " -> " FMT_plx " [size " FMT_ucellx "]\n", t, t->virt, t->phys, t->size); printk("\n"); } #endif