• David Mosberger's avatar
    [IA64] clean up pt_regs accesses · 1197f3e0
    David Mosberger authored
    This patch replaces the idiom:
    
    	func (args..., long stack) {
    		struct pt_regs *regs = (struct pt_regs *) &stack;
    
    with the more commonly used:
    
    	func (args..., struct pt_regs regs) {
    
    The latter didn't used to work with the very earliest kernels and
    compilers (anybody remember egcs?) but gcc-3.3 and probably even
    gcc-2.96 don't have a problem with it anymore.
    
    The change also makes sparse happier, since it doesn't like it when
    you access memory past the end of the declared size of that variable.
    Signed-off-by: default avatarDavid Mosberger-Tang <davidm@hpl.hp.com>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    1197f3e0
ptrace.c 42.5 KB