Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: swapping issues



David,

No need to file a Radar, as there already is one.

Essentially, you are right, except that the two macros do exactly the same thing. That is, on a PPC machine they swap the long word, and on a 386 class machine they don't. So there is no real bug here. Just a semantic difference.

Rhoads Hollowell
USB Software Team
Apple Computer, Inc.

On Sep 29, 2005, at 5:51 PM, david tay wrote:

Hi,

In the AppleUSBEHCI driver we have instances like the following

_pEHCIRegisters->AsyncListAddr = HostToUSBLong ( pEHCIEndpointDescriptor->_sharedPhysical );
in AppleUSBEHCI::UIMCreateControlEndpoint


in AppleUSBEHCI::UIMCreateBulkEndpoint
_pEHCIRegisters->AsyncListAddr = USBToHostLong ( pEHCIEndpointDescriptor->_sharedPhysical );



Is this correct? How can the same variable hold a value of different byte order?


Should I file a RADAR?

David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >swapping issues (From: david tay <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.