Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Monday, August 4, 2008 - 9:29 pm

On Sat, 2008-08-02 at 16:35 +0200, Karsten Keil wrote:

This is however very broken... IE, you should instead use iomap
and thus get ioreadXX_rep() and writeXX_rep() (XX = 16 or 32) that
will do the right thing for you. IE, they will do the right amount
of memory barriers and will avoid the unnecessary double-swapping
you are doing there.

Your code will happen to "work" but it's just way too ugly especially
since you are basically re-implementing what iomap already gives you.

Ben.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/4] Fix remaining big endian issue of hfcmulti, Karsten Keil, (Sat Aug 2, 7:35 am)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, David Woodhouse, (Mon Aug 4, 5:03 am)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Mon Aug 4, 9:29 pm)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Tue Aug 5, 6:04 am)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Linus Torvalds, (Tue Aug 5, 11:42 am)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Tue Aug 5, 2:43 pm)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Tue Aug 5, 2:45 pm)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Tue Aug 5, 2:46 pm)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Tue Aug 5, 4:04 pm)
Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti, Benjamin Herrenschmidt, (Tue Aug 5, 5:33 pm)