2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
10 #include <kernel_base.h>
11 #include <kernel_syscall.h>
13 /*****************************************************************************
16 #include <proto/kernel.h>
18 AROS_LH0(void, KrnSwitch
,
23 struct KernelBase
*, KernelBase
, 5, Kernel
)
26 Save context of caller's task and dispatch the next available task
35 This entry point directly calls task switch routine
36 in supervisor mode. It neither performs any checks of caller status
37 nor obeys interrupt enable state. After calling this function, caller's
38 task will be replaced by another one, and it's caller's responsibility
39 to do anything to prevent task loss.
41 This function is safe to call only from within user mode.
42 This function is considered internal, and not meant to be called
53 ******************************************************************************/
57 krnSysCall(SC_SWITCH
);