Fixed bug #1251.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16122 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
8d011d5f78
commit
91adddf50e
|
@ -53,6 +53,7 @@
|
||||||
* does not call the port hook again.
|
* does not call the port hook again.
|
||||||
*/
|
*/
|
||||||
void port_local_halt(void) {
|
void port_local_halt(void) {
|
||||||
|
const char *reason = "remote panic";
|
||||||
|
|
||||||
port_disable();
|
port_disable();
|
||||||
|
|
||||||
|
@ -60,7 +61,7 @@ void port_local_halt(void) {
|
||||||
__trace_halt("remote panic");
|
__trace_halt("remote panic");
|
||||||
|
|
||||||
/* Pointing to the passed message.*/
|
/* Pointing to the passed message.*/
|
||||||
currcore->dbg.panic_msg = "remote panic";
|
currcore->dbg.panic_msg = reason;
|
||||||
|
|
||||||
/* Halt hook code, usually empty.*/
|
/* Halt hook code, usually empty.*/
|
||||||
CH_CFG_SYSTEM_HALT_HOOK(reason);
|
CH_CFG_SYSTEM_HALT_HOOK(reason);
|
||||||
|
|
|
@ -837,7 +837,7 @@ void chThdExit(msg_t msg) {
|
||||||
chSysLock();
|
chSysLock();
|
||||||
|
|
||||||
/* Exit handler hook.*/
|
/* Exit handler hook.*/
|
||||||
CH_CFG_THREAD_EXIT_HOOK(tp);
|
CH_CFG_THREAD_EXIT_HOOK(nil.current);
|
||||||
|
|
||||||
#if CH_CFG_USE_WAITEXIT == TRUE
|
#if CH_CFG_USE_WAITEXIT == TRUE
|
||||||
{
|
{
|
||||||
|
|
|
@ -513,7 +513,7 @@ void chThdExitS(msg_t msg) {
|
||||||
currtp->u.exitcode = msg;
|
currtp->u.exitcode = msg;
|
||||||
|
|
||||||
/* Exit handler hook.*/
|
/* Exit handler hook.*/
|
||||||
CH_CFG_THREAD_EXIT_HOOK(tp);
|
CH_CFG_THREAD_EXIT_HOOK(currtp);
|
||||||
|
|
||||||
#if CH_CFG_USE_WAITEXIT == TRUE
|
#if CH_CFG_USE_WAITEXIT == TRUE
|
||||||
/* Waking up any waiting thread.*/
|
/* Waking up any waiting thread.*/
|
||||||
|
|
|
@ -107,6 +107,8 @@
|
||||||
instead of a simple size.
|
instead of a simple size.
|
||||||
- NEW: RT and NIL upgraded to support the enhanced OSLIB.
|
- NEW: RT and NIL upgraded to support the enhanced OSLIB.
|
||||||
- NEW: Memory areas/pointers checker functions added to OSLIB.
|
- NEW: Memory areas/pointers checker functions added to OSLIB.
|
||||||
|
- FIX: Fixed wrong use of hooks in RT/NIL (bug #1251)
|
||||||
|
(backported to 20.3.5)(backported to 21.11.4).
|
||||||
- FIX: Fixed SPI_MMC driver broken in 21.11.3 (bug #1249)
|
- FIX: Fixed SPI_MMC driver broken in 21.11.3 (bug #1249)
|
||||||
(backported to 21.11.3).
|
(backported to 21.11.3).
|
||||||
- FIX: Fixed broken support for STM32 UART9 and USART10 (bug #1248)
|
- FIX: Fixed broken support for STM32 UART9 and USART10 (bug #1248)
|
||||||
|
|
Loading…
Reference in New Issue