Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2001 22:30:46 +0100
From:      Brian Somers <brian@freebsd-services.com>
To:        Yar Tikhiy <yar@FreeBSD.ORG>
Cc:        hackers@FreeBSD.ORG, brian@freebsd-services.com
Subject:   Re: Driver structures & alignment 
Message-ID:  <200109132130.f8DLUkd97146@hak.lan.Awfulhak.org>
In-Reply-To: Message from Yar Tikhiy <yar@FreeBSD.ORG>  of "Thu, 13 Sep 2001 23:23:52 %2B0400." <20010913232352.A23874@snark.rinet.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi there,
> 
> Is there a single blessed way to define packed structures
> for use in drivers?  I suspect that using "#pragma pack(1)"
> will lead to alignment errors in non-Intel architectures.

gcc deals with it, certainly on alpha anyway.  However, I don't think 
anyone would ever bless using packed structures as it hurts memory 
transfers.

I prefer the fix-it-up-when-I-need-it-packed approach :*)

> -- 
> Yar

-- 
Brian <brian@freebsd-services.com>                <brian@Awfulhak.org>
      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109132130.f8DLUkd97146>