insane-adding-machines / frosted

Frosted: Free POSIX OS for tiny embedded devices
GNU General Public License v2.0
215 stars 39 forks source link

Add syscall-context check in ktimer_add/del() #101

Closed acardace closed 8 years ago

acardace commented 8 years ago

The first commit is only used to apply code style in order to better review the changes in the second commit.

Since ktimer_add() and ktimer_del() are used within syscall, namely (poll() and wait()), we need to check if we are executing in a syscall before enabling/disabling irqs.