Commit Message

The udbg facility provides an early debug extension that can be enabled
using CONFIG_PPC_EARLY_DEBUG.
In some cases, this early debugging facility cannot be used after
MMU_init runs (and the MMU is loaded and enabled with the definitive
mappings) because the early mappings are not valid anymore.
This patch provides a udbg hook called udbg_early_remap that gets called
at the end of MMU_init and can be used by a low level udbg driver
to accomplish several goals, like:
- extending the early debugging life by configuring and using a new
valid I/O mapping
- safely disabling the early debugging
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
---
arch/powerpc/include/asm/udbg.h | 3 +++
arch/powerpc/kernel/udbg.c | 3 +++
arch/powerpc/mm/init_32.c | 10 ++++++++++
3 files changed, 16 insertions(+), 0 deletions(-)