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> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1118 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
parent
389fcff303
commit
76b257ed2b
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue