From: John Hodge Date: Wed, 26 Oct 2011 13:15:02 +0000 (+0800) Subject: Modules/armv7 - Just a little debug X-Git-Tag: rel0.14~190 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f2b028da3f30912fd083c3597efa645e8b80534a;p=tpg%2Facess2.git Modules/armv7 - Just a little debug --- diff --git a/Modules/Input/PS2KbMouse/pl050.c b/Modules/Input/PS2KbMouse/pl050.c index 6f82e510..5a0a32a6 100644 --- a/Modules/Input/PS2KbMouse/pl050.c +++ b/Modules/Input/PS2KbMouse/pl050.c @@ -84,11 +84,14 @@ static inline void PL050_WriteMouseData(Uint8 Data) return ; } + ENTER("xData", Data); + while( --timeout && gpPL050_MouseBase[1] & PL050_TXBUSY ); if(timeout) gpPL050_MouseBase[2] = Data; else Log_Error("PL050", "Write to mouse timed out"); + LEAVE('-'); } static inline Uint8 PL050_ReadMouseData(void) diff --git a/Modules/armv7/GIC/gic.c b/Modules/armv7/GIC/gic.c index 21c3a30f..9eb720fd 100644 --- a/Modules/armv7/GIC/gic.c +++ b/Modules/armv7/GIC/gic.c @@ -41,7 +41,9 @@ int GIC_Install(char **Arguments) // Initialise gpGIC_InterfaceBase = (void*)MM_MapHWPages(gGIC_InterfaceAddr, 1); + LOG("gpGIC_InterfaceBase = %p", gpGIC_InterfaceBase); gpGIC_DistributorBase = (void*)MM_MapHWPages(gGIC_DistributorAddr, 1); + LOG("gpGIC_DistributorBase = %p", gpGIC_DistributorBase); gpGIC_InterfaceBase[GICC_PMR] = 0xFF; gpGIC_InterfaceBase[GICC_CTLR] = 1; // Enable CPU