j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Fri Apr 19 09:03:20 2013 New Revision: 1118 URL: http://tracker.coreboot.org/trac/openbios/changeset/1118
Log: SPARC32: Add debugging output for calls to the romvec obp_memalloc() and obp_dumb_memalloc() functions.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/arch/sparc32/lib.c
Modified: trunk/openbios-devel/arch/sparc32/lib.c ============================================================================== --- trunk/openbios-devel/arch/sparc32/lib.c Tue Apr 9 21:25:48 2013 (r1117) +++ trunk/openbios-devel/arch/sparc32/lib.c Fri Apr 19 09:03:20 2013 (r1118) @@ -269,6 +269,8 @@ phys_addr_t phys; ucell virt;
+ DPRINTF("obp_memalloc: virta 0x%x, sz %d, align %d\n", (unsigned int)va, size, align); + /* Claim physical memory */ phys = ofmem_claim_phys(-1, size, align);
@@ -286,6 +288,8 @@ unsigned long align; int i;
+ DPRINTF("obp_dumb_memalloc: virta 0x%x, sz %d\n", (unsigned int)va, size); + /* Solaris seems to assume that the returned value is physically aligned to size. For example, not having this here causes the Solaris 8 kernel to fault because the IOMMU page table base address is calculated incorrectly. */