On 6/14/2004 11:15 AM, Arun Sharma wrote: >> I just realized your code is broken on big-endian architectures, so >> we should either get back to __copy_to_user or find the optimal solution >> now. >> >> How about a {__,}{get,put}_user_unaligned() that gets defined per >> architecture in one of these two ways: > > > We'll go for the optimal solution now. We'll provide an > that does __copy_to_user and a > that's optimized for ia64. Archs which don't care > about alignment can override appropriately. > > Should have the patch tested by tomorrow. It took us a bit longer :) But here's the promised patch. Using __put_user_unaligned() on ia64 may still cause unaligned faults, but we chose to optimize for the common case, where it's 4 byte aligned. -Arun