mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-02-06 03:40:02 +00:00
Freertos background asserts if IPv6 is enabled (#1591)
If LWIP_IPV6=1 a request to update the multicast list occurs in a callback in the low priority interrupt. This makes an ioctl call into the driver, at the end of which is a call to cyw43_await_background_or_timeout_us (see CYW43_DO_IOCTL_WAIT). It is attempting to delay until there's "some work to do". For Freertos this fails an assertion as an attempt is made to acquire a semaphore in interrupt context. Fixes #1590
This commit is contained in:
parent
9ff8a98df6
commit
9f45e3c905
@ -164,6 +164,10 @@ void cyw43_thread_lock_check(void) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void cyw43_await_background_or_timeout_us(uint32_t timeout_us) {
|
void cyw43_await_background_or_timeout_us(uint32_t timeout_us) {
|
||||||
|
if (__get_current_exception() > 0) {
|
||||||
|
async_context_wait_until(cyw43_async_context, make_timeout_time_us(timeout_us));
|
||||||
|
return;
|
||||||
|
}
|
||||||
async_context_wait_for_work_until(cyw43_async_context, make_timeout_time_us(timeout_us));
|
async_context_wait_for_work_until(cyw43_async_context, make_timeout_time_us(timeout_us));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user