runtime: RTEMS build fixes.

From Joel Sherrill.

From-SVN: r182309
This commit is contained in:
Ian Lance Taylor 2011-12-13 21:59:26 +00:00
parent 091d222216
commit 03eee7f75c
2 changed files with 7 additions and 0 deletions

View File

@ -122,12 +122,14 @@ sighandler (int sig)
const char *msg;
int i;
#ifdef SIGPROF
if (sig == SIGPROF)
{
/* FIXME. */
runtime_sigprof (0, 0, nil, nil);
return;
}
#endif
/* FIXME: Should check siginfo for more information when
available. */
@ -257,6 +259,7 @@ runtime_initsig (int32 queue)
void
runtime_resetcpuprofiler(int32 hz)
{
#ifdef SIGPROF
struct itimerval it;
struct sigaction sa;
int i;
@ -289,6 +292,7 @@ runtime_resetcpuprofiler(int32 hz)
i = setitimer (ITIMER_PROF, &it, NULL);
__go_assert (i == 0);
}
#endif
runtime_m()->profilehz = hz;
}

View File

@ -36,10 +36,13 @@ runtime_SysFree(void *v, uintptr n)
void*
runtime_SysReserve(void *v, uintptr n)
{
USED(v);
return runtime_SysAlloc(n);
}
void
runtime_SysMap(void *v, uintptr n)
{
USED(v);
USED(n);
}