• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision13804 (tree)
Time2020-08-06 18:19:43
Authorcinsights

Log Message

Add _exit, _kill and _getpid to syscalls.c

Change Summary

Incremental Difference

--- branches/stable_20.3.x/os/various/syscalls.c (revision 13803)
+++ branches/stable_20.3.x/os/various/syscalls.c (revision 13804)
@@ -169,4 +169,29 @@
169169 return 1;
170170 }
171171
172+/***************************************************************************/
173+
174+__attribute__((used))
175+void _exit(int status) {
176+ (void) status;
177+ chSysHalt("exit");
178+ abort();
179+}
180+
181+/***************************************************************************/
182+
183+__attribute__((used))
184+int _kill(int pid, int sig) {
185+ (void) pid;
186+ (void) sig;
187+ return -1;
188+}
189+
190+/***************************************************************************/
191+
192+__attribute__((used))
193+int _getpid(void) {
194+
195+ return 1;
196+}
172197 /*** EOF ***/
Show on old repository browser