UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 23628

8.1i EDK - ../foo.c:82: error: `valid' undeclared (first use in this function)

Description

We are using the macros defined in the following file:

microblaze_0/include/mb_interface.h

The fsl_isinvalid macro we use is defined as follows:

#define fsl_isinvalid(result) asm volatile ("addic\t%0,r0,0" : "=d" (valid))

When the project is compiled, we get this error:

../foo.c:82: error: `valid' undeclared (first use in this function)

Solution

Please replace 'valid' with 'result.' It will be as follows:

#define fsl_isinvalid(result) asm volatile ("addic\t%0,r0,0" : "=d" (result))

This issue has been fixed in EDK8.2i.

AR# 23628
Date Created 09/04/2007
Last Updated 12/15/2012
Status Active
Type General Article