Page 1 of 1

ADFFS's SWI handler

Posted: Mon May 13, 2013
by JonAbbott
I've noticed the ADFFS Filer fails horribly on a 32bit OS now which I'm certain is caused by the SWI dispatcher on ADFFS...hence this thread on TIB.

Re: ADFFS's SWI handler

Posted: Thu May 16, 2013
by JonAbbott
This is now fixed in 2.14

As per the TIB thread, the exit code for a mixed 26/32bit SWI handler should be:

Code: Select all

TEQ PC, PC
MOVEQ PC, R14
MOVS PC, R14
Please ensure any modules we code adhere to this method if there's a potential for them to run on a 32bit OS. AutoVIDC for example wouldn't need it, but QTM shims would.

Re: ADFFS's SWI handler

Posted: Thu May 16, 2013
by steve3000
Interesting, I'll have to look back in the 32bit conversion code that Jeffrey Lee added to QTM, I guess that's how he did it in there?

Steve

Re: ADFFS's SWI handler

Posted: Thu May 16, 2013
by JonAbbott
Why they didn't set MPSR when passing to the SWI handler so it could exit with flags intact is beyond me. They could only have done that for a reason, can't think what though other than ARM saying it might be deprecated in the future.