]> xenbits.xensource.com Git - xtf.git/commit
Helpers to retrieve %ss and %esp from cpu_regs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 27 May 2016 07:53:53 +0000 (08:53 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Jun 2016 13:29:17 +0000 (14:29 +0100)
commit20a485d66e41411f81adb9e75cb3bfaa528ddc74
tree35ef15d90c375ffa708544a57fa514b931792abe
parent0b6ad46369eb6f3e830c317bb763066069cf0056
Helpers to retrieve %ss and %esp from cpu_regs

In 32bit, if not stack switch occurs, this information isn't present in an
exception frame.  As a result, regs->sp and regs->ss may actually alias the
interrupted stack frame.  To avoid accidental incorrect use, prefix the names
in cpu_regs with an underscore.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/traps.c
include/arch/x86/regs.h
include/arch/x86/traps.h