]> xenbits.xensource.com Git - seabios.git/commitdiff
virtio-scsi: 32bit cleanup
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Jul 2015 12:38:59 +0000 (14:38 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Jul 2015 14:35:50 +0000 (16:35 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/hw/virtio-scsi.c

index 6b4ed1aca96a67df9634235c38899c2228562515..cb825d43c6379921eea4efd63b3516118df9f5d7 100644 (file)
@@ -53,10 +53,10 @@ virtio_scsi_cmd(struct vp_device *vp, struct vring_virtqueue *vq,
     int in_num = (datain ? 2 : 1);
     int out_num = (len ? 3 : 2) - in_num;
 
-    sg[0].addr   = MAKE_FLATPTR(GET_SEG(SS), &req);
+    sg[0].addr   = (void*)(&req);
     sg[0].length = sizeof(req);
 
-    sg[out_num].addr   = MAKE_FLATPTR(GET_SEG(SS), &resp);
+    sg[out_num].addr   = (void*)(&resp);
     sg[out_num].length = sizeof(resp);
 
     if (len) {
@@ -93,10 +93,10 @@ virtio_scsi_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize)
     struct virtio_lun_s *vlun_gf =
         container_of(op->drive_gf, struct virtio_lun_s, drive);
 
-    return virtio_scsi_cmd(GET_GLOBALFLAT(vlun_gf->vp),
-                           GET_GLOBALFLAT(vlun_gf->vq), op, cdbcmd,
-                           GET_GLOBALFLAT(vlun_gf->target),
-                           GET_GLOBALFLAT(vlun_gf->lun),
+    return virtio_scsi_cmd(vlun_gf->vp,
+                           vlun_gf->vq, op, cdbcmd,
+                           vlun_gf->target,
+                           vlun_gf->lun,
                            blocksize);
 }