OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [arm/] [_kill.c] - Blame information for rev 452

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#include <_ansi.h>
2
#include <signal.h>
3
#include "swi.h"
4
 
5
int _kill _PARAMS ((int, int));
6
 
7
int
8
_kill (int pid, int sig)
9
{
10
  (void) pid; (void) sig;
11
#ifdef ARM_RDI_MONITOR
12
  /* Note: The pid argument is thrown away.  */
13
  switch (sig)
14
    {
15
    case SIGABRT:
16
      return do_AngelSWI (AngelSWI_Reason_ReportException,
17
                          (void *) ADP_Stopped_RunTimeError);
18
    default:
19
      return do_AngelSWI (AngelSWI_Reason_ReportException,
20
                          (void *) ADP_Stopped_ApplicationExit);
21
    }
22
#else
23
  asm ("swi %a0" :: "i" (SWI_Exit));
24
#endif
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.