From 08e2fc0be8b2e160c4ba6b5d1920d9688650e882 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 18 Feb 2016 12:29:37 -0600 Subject: [PATCH] Can't call sdbg() from a signal handler; And another name to nuttx-names.dat --- arch/sim/src/nuttx-names.dat | 1 + arch/sim/src/up_smpsignal.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/sim/src/nuttx-names.dat b/arch/sim/src/nuttx-names.dat index 4123de09aa..b827527f93 100644 --- a/arch/sim/src/nuttx-names.dat +++ b/arch/sim/src/nuttx-names.dat @@ -47,6 +47,7 @@ recv NXrecv recvfrom NXrecvfrom rewinddir NXrewinddir rmdir NXrmdir +sched_yield NXsched_yield seekdir NXseekdir select NXselect sem_init NXsem_init diff --git a/arch/sim/src/up_smpsignal.c b/arch/sim/src/up_smpsignal.c index e12a933d93..58582d0df9 100644 --- a/arch/sim/src/up_smpsignal.c +++ b/arch/sim/src/up_smpsignal.c @@ -75,8 +75,6 @@ void sim_cpu_pause(int cpu, volatile spinlock_t *wait, { struct tcb_s *rtcb = current_task(cpu); - sdbg("CPU%d: Blocking TCB=%p\n", cpu, rtcb); - /* Update scheduler parameters */ sched_suspend_scheduler(rtcb); @@ -106,7 +104,6 @@ void sim_cpu_pause(int cpu, volatile spinlock_t *wait, */ rtcb = current_task(cpu); - sdbg("CPU%d: New Active Task TCB=%p\n", cpu, rtcb); /* The way that we handle signals in the simulation is kind of a * kludge. This would be unsafe in a truly multi-threaded,