AR #30132 - 10.1 EDK, MPMC v4.00.a - mpmc_ecc_example.c:318: error: InterruptController undeclared

Search Answers Database


 

10.1 EDK, MPMC v4.00.a - mpmc_ecc_example.c:318: error: InterruptController undeclared

AR# 30132
Part IP-MPMC
Last Modified 2008-02-23 00:00:00.0
Status Active
Keywords xps, powerpc, undeclared, Interrupt, Controller, Setup, example

Description

Keywords: xps, powerpc, undeclared, Interrupt, Controller, Setup, example

When using the MPMC ECC example code on a PowerPC 405 design, I receive the following errors:

ecc_example/src/mpmc_ecc_example.c: In function SetupInterruptSystem:
ecc_example/src/mpmc_ecc_example.c:318: error: InterruptController undeclared (first use in this function)
ecc_example/src/mpmc_ecc_example.c:318: error: (Each undeclared identifier is reported only once
ecc_example/src/mpmc_ecc_example.c:318: error: for each function it appears in.)


How do I resolve this issue?

Solution

There is a typo in the following file:
$Xilinx_EDK/sw/XilinxProcessorIPLib/drivers/mpmc_v2_00_a/examples/mpmc_ecc_example.c

Starting at line 316 the following code:
XExc_RegisterHandler(XEXC_ID_NON_CRITICAL_INT,
(XExceptionHandler)XIntc_InterruptHandler,
&InterruptController);


should be modified as follows:
XExc_RegisterHandler(XEXC_ID_NON_CRITICAL_INT,
(XExceptionHandler)XIntc_InterruptHandler,
&Intc);


This issue is fixed starting with the newest driver code version, starting with EDK 10.1 Service Pack 1.
 
 
Jobs Events Webcasts News Investors Feedback Legal Privacy Trademarks Sitemap
©  1994-2008 Xilinx, Inc. All Rights Reserved.