2008-08-06 11:52:06 catch exception, which is caused when attempting to access MMR space in User mode??
Stephen Sheldon (GERMANY)
Message: 60041
Hi,
is it possible to catch the exception, which is caused when attempting to access MMR space in User mode?
Best regards
Stephen
TranslateQuoteReplyEditDelete
2008-08-06 12:22:30 Re: catch exception, which is caused when attempting to access MMR space in User mode??
Michael McTernan (UNITED KINGDOM)
Message: 60042
You could check user\blkfin-test\crash_test\traps_test.c which sort of does what you are requesting. It uses a child process to attempt various illegal accesses and then uses WIFSIGNALED to see if the exit status indicates that the child got killed on a signal.
QuoteReplyEditDelete
2008-08-06 12:30:17 Re: catch exception, which is caused when attempting to access MMR space in User mode??
Robin Getz (UNITED STATES)
Message: 60044
Stephen:
It depends on what you mean by catch - Your userspace process will get a kill signal - you can write your own signal handler to catch this.
-Robin
QuoteReplyEditDelete
2008-08-07 03:40:18 Re: catch exception, which is caused when attempting to access MMR space in User mode??
Stephen Sheldon (GERMANY)
Message: 60071
I need this because I have to identify from which core the code is executed. This information I get from the DSPID Register. On Core B it is no Problem to read this Register, because I am in Supervisor mode. But on Core A I am only in User mode and I only get the value of this register by using the operation system. But this is not possible from CoreB.
So my idea was to catch the exception when I am trying to read this register in user mode and use the operating system to read this register in this case.
TranslateQuoteReplyEditDelete
2008-08-07 15:25:16 Re: catch exception, which is caused when attempting to access MMR space in User mode??
Robin Getz (UNITED STATES)
Message: 60123
Stephen:
I don't think you can do what you want.
-Robin
QuoteReplyEditDelete
2008-08-08 02:43:31 Re: catch exception, which is caused when attempting to access MMR space in User mode??
Mike Frysinger (UNITED STATES)
Message: 60138
#ifdef __linux__
... core a ...
#else
... core b ...
#endif