linux-mips
[Top] [All Lists]

Re: 64bit unaligned access on 32bit kernel

To: linux-mips@linux-mips.org
Subject: Re: 64bit unaligned access on 32bit kernel
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Sat, 27 Aug 2005 22:57:40 +0900 (JST)
Cc: ralf@linux-mips.org
In-reply-to: <20050825.003548.41199755.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050825.003548.41199755.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Thu, 25 Aug 2005 00:35:48 +0900 (JST), Atsushi Nemoto 
>>>>> <anemo@mba.ocn.ne.jp> said:

anemo> MIPS kernel has been using asm-generic/unaligned.h since
anemo> 2.6.12-rc2.  But the generic unaligned.h is not suitable for
anemo> 32bit kernel because it uses 'unsigned long' for 64bit values.

FYI, I found this problem while debugging why usbhid does not work
with 2.6.12 kernel (though it worked with 2.6.11) on big endian
platform.  The usbhid use put_unaligned/get_unaligned for __u64
variables.

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>