Specifications
alt_exception_cause_generated_bad_addr()
Prototype
int alt_exception_cause_generated_bad_addr ( alt_exception_cause cause)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
--
Available from ISR
--
Include
<sys/alt_exceptions.h>
Description
This function validates the bad_addr argument to an instruction-related exception handler. The function
parses the handler’s cause argument to determine whether the bad_addr register contains the exception-
causing address.
If the exception is of a type that generates a valid address in bad_addr, this function returns a nonzero
value. Otherwise, it returns zero.
If the cause register is unimplemented in the Nios II processor core, this function always returns zero.
Return
A nonzero value means bad_addr contains the exception-causing address.
Zero means the value of bad_addr is to be ignored.
Related Information
alt_instruction_exception_register() on page 14-35
alt_erase_flash_block()
Prototype
int alt_erase_flash_block(alt_flash_fd* fd,
int offset,
int length)
Commonly Called By
C/C++ programs
NII5V2
2015.05.14
alt_exception_cause_generated_bad_addr()
14-23
HAL API Reference
Altera Corporation
Send Feedback