Add _exit, _kill and _getpid to syscalls.c
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@13804 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
5f523dc8e9
commit
784e4d4798
|
@ -169,4 +169,29 @@ int _isatty_r(struct _reent *r, int fd) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
__attribute__((used))
|
||||
void _exit(int status) {
|
||||
(void) status;
|
||||
chSysHalt("exit");
|
||||
abort();
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
__attribute__((used))
|
||||
int _kill(int pid, int sig) {
|
||||
(void) pid;
|
||||
(void) sig;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
__attribute__((used))
|
||||
int _getpid(void) {
|
||||
|
||||
return 1;
|
||||
}
|
||||
/*** EOF ***/
|
||||
|
|
Loading…
Reference in New Issue