Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / all-mingw32 / kernel / scheduler.c
blob58384cea2b611aa8adbeb8d5bcefffb971e6f575
1 #define DEBUG 0
3 #include <aros/debug.h>
4 #include <aros/kernel.h>
5 #include <aros/libcall.h>
6 #include <exec/execbase.h>
7 #include <hardware/intbits.h>
8 #include "kernel_intern.h"
9 #include "syscall.h"
11 AROS_LH0(KRN_SchedType, KrnGetScheduler,
12 struct KernelBase *, KernelBase, 1, Kernel)
14 AROS_LIBFUNC_INIT
16 return SCHED_RR;
18 AROS_LIBFUNC_EXIT
21 AROS_LH1(void, KrnSetScheduler,
22 AROS_LHA(KRN_SchedType, sched, D0),
23 struct KernelBase *, KernelBase, 2, Kernel)
25 AROS_LIBFUNC_INIT
27 /* Cannot set scheduler yet */
29 AROS_LIBFUNC_EXIT
32 AROS_LH0(void, KrnCause,
33 struct KernelBase *, KernelBase, 3, Kernel)
35 AROS_LIBFUNC_INIT
37 KernelIFace.core_syscall(SC_CAUSE);
39 AROS_LIBFUNC_EXIT
42 AROS_LH0(void , KrnDispatch,
43 struct KernelBase *, KernelBase, 4, Kernel)
45 AROS_LIBFUNC_INIT
47 D(bug("[KRN] KrnDispatch()\n"));
48 KernelIFace.core_syscall(SC_DISPATCH);
50 AROS_LIBFUNC_EXIT
53 AROS_LH0(void, KrnSwitch,
54 struct KernelBase *, KernelBase, 5, Kernel)
56 AROS_LIBFUNC_INIT
58 D(bug("[KRN] KrnSwitch()\n"));
59 KernelIFace.core_syscall(SC_SWITCH);
61 AROS_LIBFUNC_EXIT
64 AROS_LH0(void, KrnSchedule,
65 struct KernelBase *, KernelBase, 6, Kernel)
67 AROS_LIBFUNC_INIT
69 D(bug("[KRN] KrnSchedule()\n"));
70 KernelIFace.core_syscall(SC_SCHEDULE);
72 AROS_LIBFUNC_EXIT