ppc4xx: Fixed PPC4xx debug compilation error in uic.c
PATCH 1/1 ppc4xx: Fixed PPC4xx debug compilation error in uic.c
This patch fixes a debug compilation error for PPC4xx platforms, all other architectures are not affected by this change. The 'handler' pointer was undefined. The fix is exercised and has effect only if DEBUG is defined.
--- cpu/ppc4xx/uic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
cpu/ppc4xx/uic.c +1 -1
@@ -164,7 +164,7 @@ void pic_irq_enable(unsigned int vec)else if (vec >=96 )mtdcr (uic3er,mfdcr (uic3er) |UIC_MASK (vec)); -debug ("Install interrupt for vector %d ==> %p\n" , vec, handler); +debug ("Enable interrupt for vector %d\n" , vec); }void pic_irq_disable (unsigned int vec)
Signature · 1 line
1.6.0.4
PATCH 1/1 ppc4xx: Fixed PPC4xx debug compilation error in uic.c
Quoted 15 lines · On Wednesday 24 June 2009 04:31:01 Alessio Centazzo wrote:
This patch fixes a debug compilation error for PPC4xx platforms, all other architectures are not affected by this change. The 'handler' pointer was undefined. The fix is exercised and has effect only if DEBUG is defined.
Signed-off-by Alessio Centazzo acpatin at yahoo.com--- cpu/ppc4xx/uic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)cpu/ppc4xx/uic.c +0
-0
cpu/ppc4xx/uic.c void pic_irq_enable(unsigned int vec) · line 170
Quoted 8 lines
cpu/ppc4xx/uic.c +1
-1@@ -164,7 +164,7 @@ void pic_irq_enable(unsigned int vec)else if (vec >=96 )mtdcr (uic3er,mfdcr (uic3er) |UIC_MASK (vec)); -debug ("Install interrupt for vector %d ==> %p\n" , vec, handler); +debug ("Enable interrupt for vector %d\n" , vec); }void pic_irq_disable (unsigned int vec)
Patch still doesn't apply:
Applying: ppc4xx: Fixed PPC4xx debug compilation error in uic.c
error: patch failed: cpu/ppc4xx/uic.c:164
error: cpu/ppc4xx/uic.c: patch does not apply
Patch failed at 0001 ppc4xx: Fixed PPC4xx debug compilation error in uic.c
Not sure what went wrong here. On which repository did you base your patch? Please base it on the u-boot-ppc4xx repository (master branch).
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================