]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/m2/gm2-libs-ch/RTcodummy.c
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / gm2-libs-ch / RTcodummy.c
CommitLineData
1eee94d3
GM
1/* RTcodummy.c provides dummy access to thread primitives.
2
a945c346 3Copyright (C) 2019-2024 Free Software Foundation, Inc.
1eee94d3
GM
4Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
5
6This file is part of GNU Modula-2.
7
8GNU Modula-2 is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3, or (at your option)
11any later version.
12
13GNU Modula-2 is distributed in the hope that it will be useful, but
14WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16General Public License for more details.
17
18Under Section 7 of GPL version 3, you are granted additional
19permissions described in the GCC Runtime Library Exception, version
203.1, as published by the Free Software Foundation.
21
22You should have received a copy of the GNU General Public License and
23a copy of the GCC Runtime Library Exception along with this program;
24see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25<http://www.gnu.org/licenses/>. */
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31
32void
33RTco_wait (__attribute__ ((unused)) int sid)
34{
35}
36
37
38void
39RTco_signal (__attribute__ ((unused)) int sid)
40{
41}
42
43
44int
45RTco_init (void)
46{
47 return 0;
48}
49
50
51int
52RTco_initSemaphore (__attribute__ ((unused)) int value)
53{
54 return 0;
55}
56
57
58/* signalThread signal the semaphore associated with thread tid. */
59
60void
61RTco_signalThread (__attribute__ ((unused)) int tid)
62{
63}
64
65
66/* waitThread wait on the semaphore associated with thread tid. */
67
68void
69RTco_waitThread (__attribute__ ((unused)) int tid)
70{
71}
72
73
74int
75RTco_currentThread (void)
76{
77 return 0;
78}
79
80
81int
82RTco_initThread (__attribute__ ((unused)) void (*proc)(void),
83 __attribute__ ((unused)) unsigned int stackSize,
84 __attribute__ ((unused)) unsigned int interruptLevel)
85{
86 return 0;
87}
88
89
90void
91RTco_transfer (__attribute__ ((unused)) int *p1, __attribute__ ((unused)) int p2)
92{
93}
94
95
96int
97RTco_select (__attribute__ ((unused)) int p1,
98 __attribute__ ((unused)) void *p2,
99 __attribute__ ((unused)) void *p3,
100 __attribute__ ((unused)) void *p4,
101 __attribute__ ((unused)) void *p5)
102{
103 return 0;
104}
105
106
107unsigned int
108RTco_currentInterruptLevel (void)
109{
110 return 0;
111}
112
113
114/* turninterrupts returns the old interrupt level and assigns the interrupt level
115 to newLevel. */
116
117unsigned int
118RTco_turnInterrupts (unsigned int newLevel)
119{
120 return 0;
121}
122
123void
124_M2_RTco_init (void)
125{
126}
127
128void
129_M2_RTco_finish (void)
130{
131}
132
133
134#ifdef __cplusplus
135}
136#endif