James Hogan f11b478d46 fbmem: fix fb_read, fb_write unaligned accesses
fb_{read,write} access the framebuffer using lots of fb_{read,write}l's
but don't check that the file position is aligned which can cause problems
on some architectures which do not support unaligned accesses.

Since the operations are essentially memcpy_{from,to}io, new
fb_memcpy_{from,to}fb macros have been defined and these are used instead.

For Sparc, fb_{read,write} macros use sbus_{read,write}, so this defines
new sbus_memcpy_{from,to}io functions the same as memcpy_{from,to}io but
using sbus_{read,write}b instead of {read,write}b.

Signed-off-by: James Hogan <james@albanarts.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-27 18:03:08 -07:00
..
2008-12-09 00:50:13 -08:00
2010-07-24 09:57:52 -06:00
2009-12-16 07:20:12 -08:00
2010-01-29 08:22:01 -08:00
2009-06-07 05:01:00 -07:00
2009-12-17 11:03:24 -05:00
2010-10-26 16:52:08 -07:00
2010-08-10 13:47:39 -07:00
2009-01-04 15:44:52 -08:00
2010-10-07 14:08:55 +01:00
2010-10-07 14:08:55 +01:00
2010-09-22 16:35:09 -04:00
2010-10-08 13:04:00 -06:00
2010-06-09 11:12:36 +02:00
2008-12-26 15:35:41 -08:00
2010-01-14 03:14:53 -08:00
2010-10-26 16:52:08 -07:00
2010-10-26 16:52:08 -07:00
2009-01-02 18:35:29 -08:00
2009-01-02 19:42:12 -08:00
2010-08-17 22:49:26 -07:00
2008-12-27 00:35:12 -08:00
2009-01-02 19:34:46 -08:00
2009-01-02 21:10:04 -08:00
2009-11-02 04:19:42 -08:00
2008-12-07 00:04:30 -08:00
2009-01-06 18:10:27 -08:00
2008-09-19 21:18:03 -07:00
2009-01-02 21:33:05 -08:00
2009-08-16 18:25:00 -07:00
2010-08-09 00:45:46 -07:00
2010-08-09 00:45:46 -07:00