Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Nios-II Exception Address

Altera_Forum
Colaborador honorário II
1.167 Visualizações

I've been trying to find a definition in one of the auto-generated 

header files for the exception address -- no luck. Is it defined 

somewhere? 

 

I see CPU_RESET_ADDRESS in nios2_system.h, but no exception address. 

 

--Scott
0 Kudos
2 Respostas
Altera_Forum
Colaborador honorário II
434 Visualizações

Hi smcnutt, 

 

Unfortunately the exception address is not defined in any header files. The kernel assumes it is at a fixed offset from the sdram (which is bad). Please check this discussion thread  

my webpage (http://www.niosforum.com/forum/index.php?act=st&f=17&t=327&hl=exception

 

wentao
Altera_Forum
Colaborador honorário II
434 Visualizações

Hi wentao, 

 

> The kernel assumes it is at a fixed offset from the sdram (which is bad). 

 

Yep ... that's what I thought ... I was hoping that it was defined & I was 

just missing it 8-P. For now, I patched head.S to copy the exception 

trampoline to a hard-coded address ... not very clean ... but it works. 

 

Thanks, 

--Scott
Responder