[PATCH] cpukit/riscv : RISCV multitasking with non SMP

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 14 09:42:49 UTC 2023


Hello Kevin,

On 18.08.23 14:37, EYSSARTIER Kevin wrote:
> Classified as: {OPEN}
> 
> 
> Hello Sebastian,
> 
>> The level shall be zero. If it is non-zero, then this is an application
> 
>> bug resulting in the INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT
> 
>> fatal error. This error happens also if you call operating system
> 
>> services which block with interrupts disabled.
> 
> That is what I observed when calling printf. Is it a normal behavior ?
> 
> In that case, indeed my patch is useless.

I updated the sp37 test case. Could you please run this test case on 
your system without your changes?

If you call printf() with interrupts disabled or within an ISR, then you 
get this fatal error. printf() is a complex function which may even 
allocate dynamic memory in some cases.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list