Commit 03eee7f7 by Ian Lance Taylor

runtime: RTEMS build fixes.

From Joel Sherrill.

From-SVN: r182309
parent 091d2222
...@@ -122,12 +122,14 @@ sighandler (int sig) ...@@ -122,12 +122,14 @@ sighandler (int sig)
const char *msg; const char *msg;
int i; int i;
#ifdef SIGPROF
if (sig == SIGPROF) if (sig == SIGPROF)
{ {
/* FIXME. */ /* FIXME. */
runtime_sigprof (0, 0, nil, nil); runtime_sigprof (0, 0, nil, nil);
return; return;
} }
#endif
/* FIXME: Should check siginfo for more information when /* FIXME: Should check siginfo for more information when
available. */ available. */
...@@ -257,6 +259,7 @@ runtime_initsig (int32 queue) ...@@ -257,6 +259,7 @@ runtime_initsig (int32 queue)
void void
runtime_resetcpuprofiler(int32 hz) runtime_resetcpuprofiler(int32 hz)
{ {
#ifdef SIGPROF
struct itimerval it; struct itimerval it;
struct sigaction sa; struct sigaction sa;
int i; int i;
...@@ -289,6 +292,7 @@ runtime_resetcpuprofiler(int32 hz) ...@@ -289,6 +292,7 @@ runtime_resetcpuprofiler(int32 hz)
i = setitimer (ITIMER_PROF, &it, NULL); i = setitimer (ITIMER_PROF, &it, NULL);
__go_assert (i == 0); __go_assert (i == 0);
} }
#endif
runtime_m()->profilehz = hz; runtime_m()->profilehz = hz;
} }
......
...@@ -36,10 +36,13 @@ runtime_SysFree(void *v, uintptr n) ...@@ -36,10 +36,13 @@ runtime_SysFree(void *v, uintptr n)
void* void*
runtime_SysReserve(void *v, uintptr n) runtime_SysReserve(void *v, uintptr n)
{ {
USED(v);
return runtime_SysAlloc(n); return runtime_SysAlloc(n);
} }
void void
runtime_SysMap(void *v, uintptr n) runtime_SysMap(void *v, uintptr n)
{ {
USED(v);
USED(n);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment