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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [sparc/] [cygmon-salib.c] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 1... Line 1...
#ifdef TARGET_CPU_SPARC64
#ifdef TARGET_CPU_SPARC64
#include <sys/types.h>
#include <sys/types.h>
#endif
#endif
#include <sys/time.h>
#include <sys/time.h>
#include <sys/itimer.h>
 
 
 
void
void
putTtyChar(int c)
putTtyChar(int c)
{
{
  /* 2 is fork under solaris; bad juju */
  /* 2 is fork under solaris; bad juju */
Line 51... Line 50...
                nop");
                nop");
  }
  }
}
}
 
 
int
int
setitimer(int which, struct itimerval *value, struct itimerval *ovalue)
setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)
{
{
  asm(" or %g0, 158, %g1
  asm(" or %g0, 158, %g1
        ta 8
        ta 8
        nop");
        nop");
}
}
Line 167... Line 166...
        ta 8
        ta 8
        nop");
        nop");
}
}
 
 
int
int
gettimeofday (struct timeval *tp, void *junk)
gettimeofday (struct timeval *tp, struct timezone *tzp)
{
{
  asm ("or %g0, 156, %g1
  asm ("or %g0, 156, %g1
        ta 8
        ta 8
        nop");
        nop");
}
}

powered by: WebSVN 2.1.0

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