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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [libnosys/] [_exit.c] - Rev 179

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

/* Stub version of _exit.  */
 
#include <limits.h>
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
 
_VOID
_DEFUN (_exit, (rc),
	int rc)
{
  /* Default stub just causes a divide by 0 exception.  */
  int x = rc / INT_MAX;
  x = 4 / x;
 
  /* Convince GCC that this function never returns.  */
  for (;;)
    ;
}
 

Go to most recent revision | 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.