[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fault addres from sigcontext



Hi all,

While porting Boehm GC to CRIS i ran in to a problem. In the function
GC_write_fault_handler which (surprisingly) handles write fault signal, 
I need to get the address on which the fault occurred. On i386 they do:

char * addr = (char *) (sc.cr2);

where sc is of type sigcontext (defined in 
linux/include/asm-i386/sigcontext.h). On ARM they do:

char * addr = (char *)sc.fault_address;

again the sc is of type sigcontext (defined in 
linux/include/asm-arm/sigcontext.h).

So on Cris I should do... What? Thank you.

		Regards Simon