ARM: MMU: Add some debugging aids and hints
- If we have no memory registered in mmu_init() it's a critical bug.
  panic in this case.
- If we do not have a ttb when dma_alloc_coherent or remap_range is
  called it's also a critical bug. Panic in this case.
- if find_pte is called with an address outside our memory banks dump
  the memory banks and the address to give more clue what went wrong.

Also add some hints what might went wrong to the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 380ebff commit 7933e34445e8ef5c6325d552ab3d1c1ab2016186
@Sascha Hauer Sascha Hauer authored on 14 Mar 2014
Showing 1 changed file
View
arch/arm/cpu/mmu.c