2 Copyright © 2012, The AROS Development Team. All rights reserved.
8 These routines are the core of the m68k scheduling system
11 #include "aros/m68k/asm.h"
15 .globl AROS_SLIB_ENTRY(Dispatch,Exec,10)
16 .globl __Dispatch_this
18 .func AROS_SLIB_ENTRY(Dispatch,Exec,10)
19 AROS_SLIB_ENTRY(Dispatch,Exec,10):
20 lea.l %sp@(-4*(8+8)),%sp /* %sp = regs_t */
21 move.l %sp,%sp@- /* Push regs_t * onto stack */
23 jsr cpu_Dispatch /* Call cpu_Dispatch */
25 movem.l %sp@+,%d0-%d7/%a0-%a5 /* Load task state */
27 move.l %a6,%usp /* Restore user stack pointer */
28 move.l %sp@,%a6 /* Restore A6 */
30 rte /* SR, PC, etc are on the stack */