refactored some code. compiles now without suppresing any warning with gcc-6.3.0.
[AROS.git] / rom / kernel / schedulecpu.c
blob6705f77aebb6fdd95cfb0cab3f6ac778933c63eb
1 /*
2 Copyright © 2017, 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_LH1(void, KrnScheduleCPU,
20 /* SYNOPSIS */
21 AROS_LHA(void *, cpu_mask, A0),
23 /* LOCATION */
24 struct KernelBase *, KernelBase, 47, Kernel)
26 /* FUNCTION
27 Run task scheduling sequence on all CPUs given in the cpu_mask
29 INPUTS
30 Pointer to CPU Affinity mask.
32 RESULT
33 None
35 NOTES
36 This entry point directly calls task scheduling routine
37 in supervisor mode. It neither performs any checks of caller status
38 nor obeys interrupt enable state.
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_SCHEDULE);
58 AROS_LIBFUNC_EXIT