A10: Extend register debug logic
This commit is contained in:
parent
447e79dccc
commit
e9d7ab1ba3
|
@ -50,6 +50,7 @@
|
|||
#include "up_arch.h"
|
||||
#include "os_internal.h"
|
||||
#include "up_internal.h"
|
||||
#include "sctlr.h"
|
||||
|
||||
#include "a1x_pio.h"
|
||||
#include "a1x_irq.h"
|
||||
|
@ -89,11 +90,15 @@ static void a1x_dumpintc(const char *msg, int irq)
|
|||
{
|
||||
irqstate_t flags;
|
||||
|
||||
/* Dump some relevant ARMv7 register contents */
|
||||
|
||||
flags = irqsave();
|
||||
lldbg("INTC (%s, irq=%d):\n", msg, irq);
|
||||
lldbg("ARMv7 (%s, irq=%d):\n", msg, irq);
|
||||
lldbg(" CPSR: %08x SCTLR: %08x\n", flags, cp15_rdsctlr());
|
||||
|
||||
/* Dump all of the (readable) register contents */
|
||||
|
||||
lldbg("INTC (%s, irq=%d):\n", msg, irq);
|
||||
lldbg(" VECTOR: %08x BASE: %08x PROTECT: %08x NMICTRL: %08x\n",
|
||||
getreg32(A1X_INTC_VECTOR), getreg32(A1X_INTC_BASEADDR),
|
||||
getreg32(A1X_INTC_PROTECT), getreg32(A1X_INTC_NMICTRL));
|
||||
|
@ -191,6 +196,8 @@ void up_irqinitialize(void)
|
|||
|
||||
(void)irqenable();
|
||||
#endif
|
||||
|
||||
a1x_dumpintc("initial", 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -377,7 +377,7 @@ __start:
|
|||
* r5 = Address of the base of the L1 table
|
||||
*/
|
||||
|
||||
orr r1, r5, #0x48
|
||||
orr r1, r5, #0x48 /* Select cache properties */
|
||||
mcr CP15_TTBR0(r1)
|
||||
mcr CP15_TTBR1(r1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue