;References:
;swi - vector_handler_forward

;R12, R14 are on the stack


;vector_handler_400EC
;--------------------
;Prevent application slot size changes when the JIT is managing a task

#if JIT_WIMP_support == 1
.vector_handler_400EC
 LDR     R12, jit_code			;is the JIT running?
 TEQ     R12, #0
 BEQ     vector_handler_forward		;NO, hand to OS

 BL      check_task_ID			;task we support?
 BNE     vector_handler_forward		;NO, hand to OS

 ADR     R12, _SPSR
 B       hv_Wimp_SlotSize

._SPSR DCD 4
#endif