Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

Why does Nios II ISR have context parameter?

Honored Contributor II

Since an ISR already has access to global variables and registers, why do we need to have a "void* context" parameter in an ISR? 


Since the term context is also used in then sense of device/application context and context switch where value of specific device registers is stored, why then is the same term used to pass optional information to an ISR in Nios II HAL?
0 Kudos
1 Reply
Honored Contributor II

While I have figured out other things about questions I posted earlier, this question really needs answer from someone that has access to esoteric knowledge. Since an interrupt already has access to global variables and thus regiters in memory map, it is not clear why someone would invent the concept of "context" passed to an ISR.