I want to chain a routine from an ISR. The routine shall not run with the privileges as granted by the interrupt but be a standard rts ended routine.
I think I can do this by stack manipulation:
Code: Select all
my_interrupt:
; does stuffs
pea rout_without_priv
rte
rout_without_priv:
; do stuff without privileges right after the interrupt but still interrupting the original thread
rts
I have done something like this in the past to chain interrupts with priviliges:
Code: Select all
vbl:
; do stuffs
move.l old_vbl_vect, -(sp)
rts