All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Need help figuring out why my windows pv drivers wontwork with a 32 bit dom0...
Date: Fri, 1 Feb 2008 12:18:19 +0000	[thread overview]
Message-ID: <20080201121819.GH4475@implementation.uk.xensource.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D0131AA0E@trantor>

James Harper, le Fri 01 Feb 2008 15:52:55 +1100, a écrit :
> > . Windows is padding structures differently under 32 and 64 bits.
> > Strange that everything else works fine though...
> 
> I think I may be onto something with this...
> 
> 32 bit Linux (using gcc and a quick .c file):
> sizeof(uint8_t) = 1
> sizeof(uint16_t) = 2
> sizeof(uint32_t) = 4
> sizeof(uint64_t) = 8
> sizeof(struct blkif_request) = 108
> sizeof(struct blkif_request_segment) = 8
> sizeof(struct blkif_response) = 12
> 
> 64 bit Linux (using gcc and a quick .c file):
> sizeof(uint8_t) = 1
> sizeof(uint16_t) = 2
> sizeof(uint32_t) = 4
> sizeof(uint64_t) = 8
> sizeof(struct blkif_request) = 112
> sizeof(struct blkif_request_segment) = 8
> sizeof(struct blkif_response) = 16
> 
> 32 bit Windows (using Microsoft DDK Compiler and debug statements in the
> driver)
> sizeof(uint8_t) = 1
> sizeof(uint16_t) = 2
> sizeof(uint32_t) = 4
> sizeof(uint64_t) = 8
> sizeof(struct blkif_request) = 112
> sizeof(struct blkif_request_segment) = 8
> sizeof(struct blkif_response) = 16
> 
> Haven't tried this test on 64 bit windows yet, but if 32 bit windows and
> 32 bit Linux align their structures differently, I can imagine that
> problems are going to arise...

Mmm, then we probably need to define windows-specific ABI types...

Samuel

  parent reply	other threads:[~2008-02-01 12:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01  4:14 Need help figuring out why my windows pv drivers wont work with a 32 bit dom0 James Harper
2008-02-01  4:52 ` Need help figuring out why my windows pv drivers wontwork " James Harper
2008-02-01  5:48   ` Need help figuring out why my windows pv driverswontwork " James Harper
2008-02-01 12:59     ` Daniel Stodden
2008-02-01 13:03       ` Need help figuring out why my windows pvdriverswontwork " James Harper
2008-02-01 12:18   ` Samuel Thibault [this message]
2008-02-01 12:23     ` Need help figuring out why my windows pv drivers wontwork " James Harper
2008-02-01 12:59     ` James Harper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080201121819.GH4475@implementation.uk.xensource.com \
    --to=samuel.thibault@eu.citrix.com \
    --cc=james.harper@bendigoit.com.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.