summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-11-14 20:32:16 -0800
committerDavid S. Miller <davem@davemloft.net>2011-11-14 20:43:07 -0800
commit1d299bc7732c34d85bd43ac1a8745f5a2fed2078 (patch)
tree6a39fe975dd6c18ab0e5efda38ac0a5c04c62863 /scripts
parent9ff03b392fa34f6d549fbb56bf05d8a0483aa818 (diff)
downloadlinux-1d299bc7732c34d85bd43ac1a8745f5a2fed2078.tar.gz
linux-1d299bc7732c34d85bd43ac1a8745f5a2fed2078.tar.bz2
linux-1d299bc7732c34d85bd43ac1a8745f5a2fed2078.zip
sparc: Fix handling of orig_i0 wrt. debugging when restarting syscalls.
Although we provide a proper way for a debugger to control whether syscall restart occurs, we run into problems because orig_i0 is not saved and restored properly. Luckily we can solve this problem without having to make debuggers aware of the issue. Across system calls, several registers are considered volatile and can be safely clobbered. Therefore we use the pt_regs save area of one of those registers, %g2, as a place to save and restore orig_i0. Debuggers transparently will do the right thing because they save and restore this register already. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions