svga: check svga_have_vgpu10() in svga_delete_blend_state()
[mesa.git] / src / gallium / drivers / svga / svga_msg.c
index e3f72b628f42d46080f00f405cb2eb0d5f2ab3ab..8b63132cb575bb45bfad61722559566903bf82e1 100755 (executable)
@@ -83,7 +83,7 @@
          port_num, magic,                  \
          ax, bx, cx, dx, si, di)           \
 ({                                         \
-   asm volatile ("inl %%dx, %%eax;" :      \
+   __asm__ volatile ("inl %%dx, %%eax;" :  \
       "=a"(ax),                            \
       "=b"(bx),                            \
       "=c"(cx),                            \
@@ -128,7 +128,7 @@ typedef uint64_t VMW_REG;
          port_num, magic, bp,                     \
          ax, bx, cx, dx, si, di)                  \
 ({                                                \
-   asm volatile ("push %%rbp;"                    \
+   __asm__ volatile ("push %%rbp;"                \
       "movq %12, %%rbp;"                          \
       "rep outsb;"                                \
       "pop %%rbp;" :                              \
@@ -152,7 +152,7 @@ typedef uint64_t VMW_REG;
          port_num, magic, bp,                     \
          ax, bx, cx, dx, si, di)                  \
 ({                                                \
-   asm volatile ("push %%rbp;"                    \
+   __asm__ volatile ("push %%rbp;"                \
       "movq %12, %%rbp;"                          \
       "rep insb;"                                 \
       "pop %%rbp" :                               \
@@ -183,7 +183,7 @@ typedef uint32_t VMW_REG;
          port_num, magic, bp,                     \
          ax, bx, cx, dx, si, di)                  \
 ({                                                \
-   asm volatile ("push %%ebp;"                    \
+   __asm__ volatile ("push %%ebp;"                \
       "mov %12, %%ebp;"                           \
       "rep outsb;"                                \
       "pop %%ebp;" :                              \
@@ -208,7 +208,7 @@ typedef uint32_t VMW_REG;
          port_num, magic, bp,                     \
          ax, bx, cx, dx, si, di)                  \
 ({                                                \
-   asm volatile ("push %%ebp;"                    \
+   __asm__ volatile ("push %%ebp;"                \
       "mov %12, %%ebp;"                           \
       "rep insb;"                                 \
       "pop %%ebp" :                               \
@@ -293,7 +293,7 @@ struct rpc_channel {
 static enum pipe_error
 svga_open_channel(struct rpc_channel *channel, unsigned protocol)
 {
-   VMW_REG ax, bx, cx, dx, si = 0, di = 0;
+   VMW_REG ax = 0, bx = 0, cx = 0, dx = 0, si = 0, di = 0;
 
    VMW_PORT(VMW_PORT_CMD_OPEN_CHANNEL,
       (protocol | GUESTMSG_FLAG_COOKIE), si, di,
@@ -323,7 +323,7 @@ svga_open_channel(struct rpc_channel *channel, unsigned protocol)
 static enum pipe_error
 svga_close_channel(struct rpc_channel *channel)
 {
-   VMW_REG ax, bx, cx, dx, si, di;
+   VMW_REG ax = 0, bx = 0, cx = 0, dx = 0, si, di;
 
    /* Set up additional parameters */
    si = channel->cookie_high;
@@ -354,7 +354,7 @@ svga_close_channel(struct rpc_channel *channel)
 static enum pipe_error
 svga_send_msg(struct rpc_channel *channel, const char *msg)
 {
-   VMW_REG ax, bx, cx, dx, si, di, bp;
+   VMW_REG ax = 0, bx = 0, cx = 0, dx = 0, si, di, bp;
    size_t msg_len = strlen(msg);
    int retries = 0;