[nut-Patches][301880] amd64 support enhancement

nut-patches at alioth.debian.org nut-patches at alioth.debian.org
Mon Jun 18 12:29:12 UTC 2007


Patches item #301880, was opened at 2005-07-04 13:43
>Status: Closed
Priority: 5
Submitted By: Arnaud Quette (aquette)
Assigned to: Nobody (None)
Summary: amd64 support enhancement 
Category: None
Group: None
>Resolution: Invalid


Initial Comment:
it seems the amd64 support is partly broken, as I (Arnaud) have received a report about MGE PSP compilation problem due to the prototypes in upsclient.h (upscli_get()). It seems linked to the "unsigned int" type.

From:
http://www.amd.com/us-en/assets/content_type/DownloadableAssets/Porting_x86_Linux_device_drivers_to_AMD64_Technology.htm

> ...
> The common x86 practice of using an unsigned int to represent a pointer
> causes the most bugs when recompiling drivers to AMD64 architecture.
> The correct Linux idiom is to use an unsigned long, which is defined to be
> the size of an general purpose register in the current architecture.

Thanks to Filiep Declerck for reporting it.


----------------------------------------------------------------------

>Comment By: Arjen de Korte (adkorte-guest)
Date: 2007-06-18 14:29

Message:
Closing this patch. There is nothing wrong with the way how we deal with the 'unsigned int' in this function. Requests for additional information have not been answered, so I'm closing this now.

----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=411544&aid=301880&group_id=30602



More information about the NUT-tracker mailing list