summaryrefslogtreecommitdiff
path: root/nuttx/arch/rgmp
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-04-25 15:19:59 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-04-25 15:19:59 -0600
commit1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f (patch)
tree95050f5e635b87d26f4dd98612b05edf632b2a96 /nuttx/arch/rgmp
parent5f6e91b0ed1b373d0b4f963b0e0f8f7fe05ec766 (diff)
downloadnuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.tar.gz
nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.tar.bz2
nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.zip
Remove up_assert_code
Diffstat (limited to 'nuttx/arch/rgmp')
-rw-r--r--nuttx/arch/rgmp/src/nuttx.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/nuttx/arch/rgmp/src/nuttx.c b/nuttx/arch/rgmp/src/nuttx.c
index a4f713be6..e96317621 100644
--- a/nuttx/arch/rgmp/src/nuttx.c
+++ b/nuttx/arch/rgmp/src/nuttx.c
@@ -450,23 +450,6 @@ void up_assert(const uint8_t *filename, int line)
}
}
-void up_assert_code(const uint8_t *filename, int line, int code)
-{
- fprintf(stderr, "Assertion failed at file:%s line: %d error code: %d\n",
- filename, line, code);
-
- // in interrupt context or idle task means kernel error
- // which will stop the OS
- // if in user space just terminate the task
- if (up_interrupt_context() || current_task->pid == 0) {
- panic("%s: %d\n", __func__, __LINE__);
- }
- else {
- exit(EXIT_FAILURE);
- }
-}
-
-
#ifndef CONFIG_DISABLE_SIGNALS
void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)