adopt previous changes. (NicJA)
[AROS.git] / rom / kernel / dispatch.c
blob875b27998233c19d219e5c3fbfc502ba609b4102
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
10 #include <kernel_base.h>
11 #include <kernel_syscall.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/kernel.h>
18 AROS_LH0(void, KrnDispatch,
20 /* SYNOPSIS */
22 /* LOCATION */
23 struct KernelBase *, KernelBase, 4, Kernel)
25 /* FUNCTION
26 Run the next available task
28 INPUTS
29 None
31 RESULT
32 None
34 NOTES
35 This entry point directly calls task dispatch routine in supervisor mode.
36 It neither performs any checks of caller status nor obeys interrupt enable
37 state. After calling this function, caller's task will be replaced by
38 another one, and caller's state will be lost.
40 This function is safe to call only from within user mode.
41 This function is considered internal, and not meant to be called
42 by user's software.
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 INTERNALS
52 ******************************************************************************/
54 AROS_LIBFUNC_INIT
56 krnSysCall(SC_DISPATCH);
58 AROS_LIBFUNC_EXIT