|
Rockbox mail archiveSubject: Re: Various bug fixes and improvements - where to put?Re: Various bug fixes and improvements - where to put?
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Tue, 02 Mar 2004 09:30:58 +0100 Jens Arnold wrote: > If you want to allow yield() from within "interupt disabled" > blocks, we would need cli() and sti() functions that preserve a > "nesting count", i.e. cli() disables interrupts (always) and > increments this count, sti() decrements this count and enables > interrupts _only_ if the nesting count reaches zero. First of all, we have no intention of allowing yield() within an interrupt disabled block. Secondly, if you implement this nesting mechanism, you will have about the same overhead as the set_irq_level() function, and you just complained about its inefficiency. And you still need to take the current level into account in the cli()/sti() functions, since you may be calling it from an interrupt function. Linus _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox Received on 2004-03-02 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |