This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
why did not enable interrupt before call pending dsr while not use interrupt stack
- From: Randy <randyqiuxy at hotmail dot com>
- To: Randy <randyqiuxy at hotmail dot com>, "Stanislav Meduna" <stano at meduna dot org>
- Cc: "eCos Discussion" <ecos-discuss at sourceware dot org>
- Date: Thu, 18 Apr 2013 10:52:21 +0800
- Subject: why did not enable interrupt before call pending dsr while not use interrupt stack
- References: <CA+QuBBfU01exmSPQQuXqhGOLASYa=4w32Gp=R0bR9DaUWvJJtA at mail dot gmail dot com>, <51546EFC dot 5050603 at dallaway dot org dot uk> <BLU0-SMTP3646F7EEA8206EF237E9FD3C3DD0 at phx dot gbl>, <5158269C dot 5000804 at meduna dot org> <BLU0-SMTP36883F43DD5BCCFFF94355FC3DD0 at phx dot gbl>, <51597647 dot 1010803 at meduna dot org> <BLU0-SMTP3875CC7A757A307F1E468B2C3C40 at phx dot gbl>, <516172E4 dot 6080207 at meduna dot org>, <BLU0-SMTP313D1383BE6FA15183677A7C3C70 at phx dot gbl>, <BLU0-SMTP2924A182475BCD6AEDEC91C3C70 at phx dot gbl>, <BLU0-SMTP14119AC133E089A26AE1335C3C30 at phx dot gbl>
- Reply-to: randyqiuxy <randyqiuxy at hotmail dot com>
Hi all,
I see that enable interrupt before call pending dsr while we use interrupt stack, but I don't find anywhere do the same thing if we don't use interrupt stack via MACRO:CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK
If we don't enable interrupt before calling pending dsr, then calling simple synchronization methods like cyg_semaphore_post() in DSR would cause problem since the methods will be scheduling..
Anything wrong with my understanding?
--------------
Thanks a lot..
Best regards,
Randy