Jason Wessel wrote:
I rolled up several patches along with my changes to fix HW
breakpoints on x86_64 and i386. I also deprecated some of the
#defines in favor of using the kgdb_ops to control the HW breakpoints
for other non IA archs at the point that these are implemented.
Until such
I discovered that the preempt_count problem exists in different forms
due to the way faults are handled are different archs when the
kgdb_may_fault and long jump occur to restore the system context. This
means that a general solution was needed vs a per arch solution.
Attached is the patch
Well since source forge is eating patches of my again... I use cut and
paste.
It is necessary to restore the preempt count in a preempt kernel
because there can be any number of faults that generate one or more
exceptions.
Generally