preempt_forbid_cnt: make it of type cpuatomic_t
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 29 Aug 2008 20:36:39 +0000 (20:36 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 29 Aug 2008 20:36:39 +0000 (20:36 +0000)
commit1200cce6f786accd1e56bfe1982b3c58d297aee7
tree033c44084d0a6660e687bb1f9ac46006730738fb
parent2b94598f7ca61c390f443846305d5ee6efcba920
preempt_forbid_cnt: make it of type cpuatomic_t

This takes care of archs such as the AVR, where int is bigger than the
word size, and updating preempt_forbid_cnt might actually result in two
independent writes.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1760 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/kern/preempt.c
bertos/kern/proc.h