[OpenBIOS] [PATCH 1/7] SPARC32: Add debugging output for calls to the romvec obp_memalloc() and obp_dumb_memalloc() functions.
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Fri Apr 12 14:57:41 CEST 2013
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/arch/sparc32/lib.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/openbios-devel/arch/sparc32/lib.c b/openbios-devel/arch/sparc32/lib.c
index c0df654..f8fa55a 100644
--- a/openbios-devel/arch/sparc32/lib.c
+++ b/openbios-devel/arch/sparc32/lib.c
@@ -269,6 +269,8 @@ char *obp_memalloc(char *va, unsigned int size, unsigned int align)
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 @@ char *obp_dumb_memalloc(char *va, unsigned int size)
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. */
--
1.7.10.4
More information about the OpenBIOS
mailing list