diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-26 16:24:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-26 16:24:43 +0000 |
commit | 2f898df5ff183d891d185f75003c41e6c7867686 (patch) | |
tree | e948ed86f4ebc9b8772c7a660ce0c1cc5df03196 /nuttx/arch/mips/src/common/up_exit.c | |
parent | 787c07292b3d5193397d7a1f90856c72a5211acc (diff) | |
download | px4-nuttx-2f898df5ff183d891d185f75003c41e6c7867686.tar.gz px4-nuttx-2f898df5ff183d891d185f75003c41e6c7867686.tar.bz2 px4-nuttx-2f898df5ff183d891d185f75003c41e6c7867686.zip |
Fix an PIC32 error in scheduling of signal handlers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4229 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/common/up_exit.c')
-rw-r--r-- | nuttx/arch/mips/src/common/up_exit.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nuttx/arch/mips/src/common/up_exit.c b/nuttx/arch/mips/src/common/up_exit.c index cf6b25fda..f82b47330 100644 --- a/nuttx/arch/mips/src/common/up_exit.c +++ b/nuttx/arch/mips/src/common/up_exit.c @@ -1,8 +1,8 @@ /**************************************************************************** - * arch/mips/src.common/up_exit.c + * arch/mips/src/common/up_exit.c * - * Copyright (C) 2010 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -41,6 +41,7 @@ #include <sched.h> #include <syscall.h> +#include <assert.h> #include <debug.h> #include <nuttx/arch.h> @@ -171,5 +172,11 @@ void _exit(int status) /* Then switch contexts */ up_fullcontextrestore(tcb->xcp.regs); + + /* up_fullcontextrestore() should not return but could if the software + * interrupts are disabled. + */ + + PANIC(OSERR_INTERNAL); } |