ADFFS's SWI handler

Discuss ADFFS development and download test releases
Post Reply
JonAbbott
Posts: 2938
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

ADFFS's SWI handler

Post 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.
JonAbbott
Posts: 2938
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: ADFFS's SWI handler

Post 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.
steve3000
Posts: 198
Joined: Thu May 02, 2013 9:25 pm

Re: ADFFS's SWI handler

Post 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
JonAbbott
Posts: 2938
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: ADFFS's SWI handler

Post 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.
Post Reply