git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16122 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2023-03-02 09:09:22 +00:00
parent 8d011d5f78
commit 91adddf50e
4 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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
{ {

View File

@ -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.*/

View File

@ -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)