Skip to content
  • Deepak Rawat's avatar
    winsys/svga/drm: Fix 32-bit RPCI send message · 72fc8868
    Deepak Rawat authored
    
    
    Depending on whether compiled with frame-pointer or not, the temporary
    memory location used for the bp parameter in these macros are 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.
    
    Also in case of failuire RPCI channel is not closed which lead to vmx
    running out of channels.
    
    Cc: mesa-stable@lists.freedesktop.org
    Signed-off-by: default avatarDeepak Rawat <drawat@vmware.com>
    Reviewed-by: default avatarSinclair Yeh <syeh@vmware.com>
    Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    72fc8868