kgdb,i386: Fix corner case access to sp with NMI watch dog exception
It is possible for the user_mode_vm(regs) check to return true for a
non master kgdb cpu or when the master kgdb cpu handles the NMI watch
dog exception.
The solution is simply to select the correct stack pointer location
based on the check to user_mode_vm(regs).
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Showing
Please register or sign in to comment