1 #include <aros/kernel.h>
3 #include <kernel_base.h>
4 #include <kernel_syscall.h>
6 /*****************************************************************************
9 #include <proto/kernel.h>
11 AROS_LH0(void, KrnSwitch
,
16 struct KernelBase
*, KernelBase
, 5, Kernel
)
19 Save context of caller's task and dispatch the next available task
28 This entry point directly calls task switch routine
29 in supervisor mode. It neither performs any checks of caller status
30 nor obeys interrupt enable state. After calling this function, caller's
31 task will be replaced by another one, and it's caller's responsibility
32 to do anything to prevent task loss.
34 This function is safe to call only from within user mode.
35 This function is considered internal, and not meant to be called
46 ******************************************************************************/
50 /* The real implementation is in Exec/Switch */
51 Supervisor(__AROS_GETVECADDR(SysBase
,9));