Blackfin/ipipe: fix deferred pipeline sync for the root stage
authorPhilippe Gerum <rpm@xenomai.org>
Thu, 17 Mar 2011 06:15:24 +0000 (02:15 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 Mar 2011 08:01:11 +0000 (04:01 -0400)
commit9169b51f8ce6cd11cd19913b54466ec11e6a12f9
tree79d6537878aefeb5c6b766971b717358a2ee1513
parent5b5da4c4b843e0d84244472b72fe1e7500f5681f
Blackfin/ipipe: fix deferred pipeline sync for the root stage

This patch makes sure to sync the pipeline for the root stage only
from the outer interrupt level, when resuming kernel code after an
interrupt.

This fixes a bug causing EVT15 to be spuriously popped off upon nested
interrupts, which in turn would cause the preempted kernel code to
resume without supervisor privileges.

Signed-off-by: Philippe Gerum <rpm@xenomai.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-common/entry.S
arch/blackfin/mach-common/interrupt.S