Article ID: 000084794 Content Type: Troubleshooting Last Reviewed: 04/01/2014

Example Code Error in Nios II Processor Reference Handbook, Application Binary Interface Chapter

Environment

    Quartus® II Subscription Edition
    Nios® II Processor
BUILT IN - ARTICLE INTRO SECOND COMPONENT

Critical Issue

Description

In the Application Binary Interface chapter of the Nios II Processor Reference Handbook, Example 7-3 (“Returned struct is Larger than 8 Bytes”) contains a typographical error. *value should be replaced by &value.

Resolution

The correct code example is as follows:

void b(STRUCT *p_result, int i, int j)

{

...

*p_result = result;

}

void a(...)

{

STRUCT value;

...

b(&value, i, j);

}

Related Products

This article applies to 1 products

Intel® Programmable Devices

1