diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-19 14:22:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-19 14:22:43 +0000 |
commit | bf14d0a7cfb1c59f692cd24d9e97699b01e103b4 (patch) | |
tree | c94333bd8c43f9af9dcf280bf2eb76e1cf071765 /nuttx/arch/dm320 | |
parent | 35aaf2d6d6776ea47729eb80efb15e04671ab316 (diff) | |
download | px4-nuttx-bf14d0a7cfb1c59f692cd24d9e97699b01e103b4.tar.gz px4-nuttx-bf14d0a7cfb1c59f692cd24d9e97699b01e103b4.tar.bz2 px4-nuttx-bf14d0a7cfb1c59f692cd24d9e97699b01e103b4.zip |
Interrupts must be disabled in all low level context switches
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@89 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/dm320')
-rw-r--r-- | nuttx/arch/dm320/src/up_exit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/dm320/src/up_exit.c b/nuttx/arch/dm320/src/up_exit.c index 606ea097b..b96d5f824 100644 --- a/nuttx/arch/dm320/src/up_exit.c +++ b/nuttx/arch/dm320/src/up_exit.c @@ -76,7 +76,7 @@ static void _up_dumponexit(FAR _TCB *tcb, FAR void *arg) { int i; - dbg(" TCB=%p name=%s\n", tcb, tcb->name); + dbg(" TCB=%p name=%s\n", tcb, tcb->argv[0]); if (tcb->filelist) { dbg(" filelist refcount=%d\n", @@ -128,8 +128,9 @@ static void _up_dumponexit(FAR _TCB *tcb, FAR void *arg) void _exit(int status) { _TCB* tcb = (_TCB*)g_readytorun.head; + irqstate_t flags = irqsave(); - dbg("TCB=%p exitting\n", tcb); + lldbg("TCB=%p exitting\n", tcb); #if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG) dbg("Other tasks:\n"); @@ -162,7 +163,7 @@ void _exit(int status) */ tcb = (_TCB*)g_readytorun.head; - dbg("New Active Task TCB=%p\n", tcb); + lldbg("New Active Task TCB=%p\n", tcb); /* Then switch contexts */ |