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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [arm/] [_kill.c] - Rev 207

Compare with Previous | Blame | View Log

#include <_ansi.h>
#include <signal.h>
#include "swi.h"
 
int _kill _PARAMS ((int, int));
 
int
_kill (int pid, int sig)
{
  (void) pid; (void) sig;
#ifdef ARM_RDI_MONITOR
  /* Note: The pid argument is thrown away.  */
  switch (sig)
    {
    case SIGABRT:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_RunTimeError);
    default:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_ApplicationExit);
    }
#else
  asm ("swi %a0" :: "i" (SWI_Exit));
#endif
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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