• T
    drm/vmwgfx: Fix 32-bit VMW_PORT_HB_[IN|OUT] macros · 938ae725
    Thomas Hellstrom 提交于
    Depending on whether the kernel is compiled with frame-pointer or not,
    the temporary memory location used for the bp parameter in these macros
    is referenced relative to the stack pointer or the frame pointer.
    Hence we can never reference that parameter when we've modified either
    the stack pointer or the frame pointer, because then the compiler would
    generate an incorrect stack reference.
    
    Fix this by pushing the temporary memory parameter on a known location on
    the stack before modifying the stack- and frame pointers.
    
    Cc: <stable@vger.kernel.org>
    Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: NBrian Paul <brianp@vmware.com>
    Reviewed-by: NSinclair Yeh <syeh@vmware.com>
    938ae725
vmwgfx_msg.h 5.1 KB