summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-20 19:23:20 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-22 13:50:26 +0000
commit00129ac87205bfdf52a03e1053923ccf498501d4 (patch)
tree4739b416dfe5e4f1f4807fa1eb2d65480c7e3ff0 /firmware/target/arm/tms320dm320
parentf0e3a36fe4b06627d2c7293f42ede38944ff162c (diff)
downloadrockbox-00129ac87205bfdf52a03e1053923ccf498501d4.tar.gz
rockbox-00129ac87205bfdf52a03e1053923ccf498501d4.zip
Fix battery_bench bug by using a static buffer for stack
Since battery_bench is a TSR (terminate & stay resident) plugin it cannot allocate the plugin buffer -- various parts of the Rockbox core make use of it as temporary storage space. The buffer was used for stack space so this generated false 'Stkov' panics when one of those in-core users overwrote the buffer. The default stack size of 1kb is a bit small, so use 4x the default size to be on the safe side. This also fixes a minor issue where trying to view OS stack usage while battery_bench was running would cause audio dropouts, due to scanning the possibly huge stack with IRQs disabled. Change-Id: I2e6b76f9946db9090c1af61f7aa0a0dac0698c20
Diffstat (limited to 'firmware/target/arm/tms320dm320')
0 files changed, 0 insertions, 0 deletions