Angus Gratton
86f2c285eb
py: Add new cstack API for stack checking, with limit margin macro.
...
Currently the stack limit margin is hard-coded in each port's call to
`mp_stack_set_limit()`, but on threaded ports it's fiddlier and can lead to
bugs (such as incorrect thread stack margin on esp32).
This commit provides a new API to initialise the C Stack in one function
call, with a config macro to set the margin. Where possible the new call
is inlined to reduce code size in thread-free ports.
Intended replacement for `MP_TASK_STACK_LIMIT_MARGIN` on esp32.
The previous `stackctrl.h` API is still present and unmodified apart from a
deprecation comment. However it's not available when the
`MICROPY_PREVIEW_VERSION_2` macro is set.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au >
2024-08-14 12:55:45 +10:00
..
2024-02-28 15:48:51 +11:00
2024-03-07 16:25:17 +11:00
2024-03-16 12:19:12 +11:00
2024-03-07 14:20:42 +11:00
2024-08-08 17:59:06 +10:00
2017-07-18 11:57:39 +10:00
2024-07-02 13:19:17 +10:00
2024-03-15 12:59:58 +11:00
2024-03-16 12:19:12 +11:00
2024-08-08 17:59:32 +10:00
2022-05-05 13:30:40 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-08 13:31:02 +11:00
2024-03-15 12:04:34 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-15 12:04:25 +11:00
2024-07-12 22:59:31 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-07-02 10:23:26 +10:00
2024-03-07 14:20:42 +11:00
2023-12-22 10:26:52 +11:00
2024-06-20 00:11:05 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-07-22 10:42:29 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-28 16:18:09 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-07-04 15:55:03 +10:00
2024-07-20 12:18:07 +10:00
2024-03-15 14:22:11 +11:00
2024-07-04 15:55:03 +10:00
2024-06-04 12:45:01 +10:00
2024-03-07 14:20:42 +11:00
2024-08-08 17:59:32 +10:00
2024-08-08 17:59:32 +10:00
2024-03-15 18:11:28 +11:00
2024-08-08 18:02:21 +10:00
2024-03-15 18:11:28 +11:00
2024-07-20 12:32:31 +10:00
2024-03-07 14:20:42 +11:00
2024-06-17 13:12:54 +10:00
2024-03-07 14:20:42 +11:00
2024-08-14 12:55:45 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2023-06-08 17:54:14 +10:00
2024-03-28 17:36:13 +11:00
2024-08-13 17:32:32 +10:00
2024-07-22 14:40:45 +10:00
2024-03-07 14:20:42 +11:00
2024-07-04 15:55:03 +10:00
2024-03-07 14:20:42 +11:00
2023-06-08 17:54:14 +10:00
2020-09-08 11:41:31 +10:00
2022-06-03 11:53:28 +10:00
2024-03-28 12:52:28 +11:00
2019-06-03 16:47:35 +10:00
2024-07-04 15:55:03 +10:00
2024-07-04 15:55:03 +10:00
2024-07-12 01:03:46 +10:00
2024-05-07 17:42:34 +10:00
2024-03-16 10:59:03 +11:00
2020-02-28 10:33:03 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-07-23 11:39:17 +10:00
2019-10-29 12:12:37 +11:00
2024-03-07 14:20:42 +11:00
2019-10-29 14:17:29 +11:00
2024-03-07 14:20:42 +11:00
2024-07-04 15:55:03 +10:00
2024-03-07 14:20:42 +11:00
2024-07-04 15:55:03 +10:00
2018-06-06 14:33:42 +10:00
2024-03-07 14:20:42 +11:00
2024-07-23 12:13:49 +10:00
2022-05-25 13:04:45 +10:00
2022-09-19 19:06:07 +10:00
2017-07-18 11:57:39 +10:00