linux-mips
[Top] [All Lists]

Re: [PATCH] 64bit unaligned access on 32bit kernel

To: ralf@linux-mips.org
Subject: Re: [PATCH] 64bit unaligned access on 32bit kernel
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed, 08 Mar 2006 13:58:40 +0900 (JST)
Cc: akpm@osdl.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
In-reply-to: <20060307180907.GA13577@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060306.203218.69025300.nemoto@toshiba-tops.co.jp> <20060306170552.0aab29c5.akpm@osdl.org> <20060307180907.GA13577@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Tue, 7 Mar 2006 18:09:07 +0000, Ralf Baechle <ralf@linux-mips.org> 
>>>>> said:
ralf> Below's fix results in exactly the same code size on all
ralf> compilers and configurations I've tested it.

ralf> I also have another more elegant fix which as a side effect
ralf> makes get_unaligned work for arbitrary data types but it that
ralf> one results in a slight code bloat:

I tested the patch attached on several MIPS kernel (big/little,
32bit/64bit) with gcc 3.4.5.  In most (but not all) case, Ralf's fix
resulted better than the previous fix.

Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

---
Atsushi Nemoto

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