summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src/common')
-rw-r--r--nuttx/arch/z80/src/common/up_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/z80/src/common/up_exit.c b/nuttx/arch/z80/src/common/up_exit.c
index c738202a9..aa578f29e 100644
--- a/nuttx/arch/z80/src/common/up_exit.c
+++ b/nuttx/arch/z80/src/common/up_exit.c
@@ -156,7 +156,7 @@ void _exit(int status)
/* Destroy the task at the head of the ready to run list. */
- (void)task_deletecurrent();
+ (void)task_exit();
/* Now, perform the context switch to the new ready-to-run task at the
* head of the list.