From: Blue Swirl Date: Sat, 25 Apr 2009 08:00:11 +0000 (+0000) Subject: Fix compilation when x86_64 is defined X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~12110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fcfeff9face289aa69a037e73a76c1a7b8c7411;p=sdk%2Femulator%2Fqemu.git Fix compilation when x86_64 is defined --- diff --git a/hw/xen_blkif.h b/hw/xen_blkif.h index 254a5fd..738b8fe 100644 --- a/hw/xen_blkif.h +++ b/hw/xen_blkif.h @@ -59,8 +59,8 @@ DEFINE_RING_TYPES(blkif_x86_64, struct blkif_x86_64_request, struct blkif_x86_64 union blkif_back_rings { blkif_back_ring_t native; blkif_common_back_ring_t common; - blkif_x86_32_back_ring_t x86_32; - blkif_x86_64_back_ring_t x86_64; + blkif_x86_32_back_ring_t x86_32_part; + blkif_x86_64_back_ring_t x86_64_part; }; typedef union blkif_back_rings blkif_back_rings_t; diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 784cc04..f95e373 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -440,10 +440,12 @@ static int blk_send_response_one(struct ioreq *ioreq) dst = RING_GET_RESPONSE(&blkdev->rings.native, blkdev->rings.native.rsp_prod_pvt); break; case BLKIF_PROTOCOL_X86_32: - dst = RING_GET_RESPONSE(&blkdev->rings.x86_32, blkdev->rings.x86_32.rsp_prod_pvt); + dst = RING_GET_RESPONSE(&blkdev->rings.x86_32_part, + blkdev->rings.x86_32_part.rsp_prod_pvt); break; case BLKIF_PROTOCOL_X86_64: - dst = RING_GET_RESPONSE(&blkdev->rings.x86_64, blkdev->rings.x86_64.rsp_prod_pvt); + dst = RING_GET_RESPONSE(&blkdev->rings.x86_64_part, + blkdev->rings.x86_64_part.rsp_prod_pvt); break; default: dst = NULL; @@ -491,10 +493,12 @@ static int blk_get_request(struct XenBlkDev *blkdev, struct ioreq *ioreq, RING_I sizeof(ioreq->req)); break; case BLKIF_PROTOCOL_X86_32: - blkif_get_x86_32_req(&ioreq->req, RING_GET_REQUEST(&blkdev->rings.x86_32, rc)); + blkif_get_x86_32_req(&ioreq->req, + RING_GET_REQUEST(&blkdev->rings.x86_32_part, rc)); break; case BLKIF_PROTOCOL_X86_64: - blkif_get_x86_64_req(&ioreq->req, RING_GET_REQUEST(&blkdev->rings.x86_64, rc)); + blkif_get_x86_64_req(&ioreq->req, + RING_GET_REQUEST(&blkdev->rings.x86_64_part, rc)); break; } return 0; @@ -698,13 +702,15 @@ static int blk_connect(struct XenDevice *xendev) case BLKIF_PROTOCOL_X86_32: { blkif_x86_32_sring_t *sring_x86_32 = blkdev->sring; - BACK_RING_INIT(&blkdev->rings.x86_32, sring_x86_32, XC_PAGE_SIZE); + + BACK_RING_INIT(&blkdev->rings.x86_32_part, sring_x86_32, XC_PAGE_SIZE); break; } case BLKIF_PROTOCOL_X86_64: { blkif_x86_64_sring_t *sring_x86_64 = blkdev->sring; - BACK_RING_INIT(&blkdev->rings.x86_64, sring_x86_64, XC_PAGE_SIZE); + + BACK_RING_INIT(&blkdev->rings.x86_64_part, sring_x86_64, XC_PAGE_SIZE); break; } }