TuxSH cc46e16d66 Fix hb autoboot stuck in exception at boot after a forced shutdown
Closes #1882.

Whenever power button is held long enough ("force shutdown"), mcu sysmodule
stores a flag in free reg 0. It will clear it next boot.

During that next boot, if that flag was set and if CFG_BOOTENV.bit0 is set
(warmboot/firm chainload, i.e. not coldbooting), then main() will simulate
a "power button held" interrupt (after upgrading mcu fw if necessary -- it
will reboot console after if it has upgraded mcu fw, I guess that's one of
the reasons the flag is there). This obviously cause other processes to initiate
a shutdown.

In the case of autoboot, ns will panic when this happens.
2024-06-12 22:44:38 +02:00
..
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2022-03-28 20:30:02 +01:00
2023-08-12 18:00:08 +02:00
2023-08-12 18:00:08 +02:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2019-03-15 23:03:20 +01:00
2024-05-25 17:50:22 +02:00
2023-07-09 00:28:17 +02:00
2022-03-28 20:30:02 +01:00
2022-03-28 20:30:02 +01:00
2020-04-25 13:42:10 +01:00
2023-07-09 00:28:17 +02:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2022-06-04 22:27:31 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2024-02-06 23:53:28 +01:00