]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sh: get_user fixes and nommu consolidation.
authorStuart Menefy <stuart.menefy@st.com>
Fri, 30 Nov 2007 09:16:23 +0000 (18:16 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:59 +0000 (13:18 +0900)
commit0fb19dcb64ec4bd9934eee26ce66417fe028ffd8
treea2bb20e3d3f0703959e800cfcab2ad0eb81bf503
parentfc55888f83c1c0ac09abe4680f9a94fc0662677f
sh: get_user fixes and nommu consolidation.

When a get_user(to, from++) is called the pointer increment is performed
after its first usage, in the specific after the __add_ok invokation.
This causes a wrong get_user return value, putting a wrong character
in the destination variable. This patch solves the problem using a new
temporary pointer.

Additionally this reworks the use of the register banks, allowing for
consolidation between the MMU and nommu implementations.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Giuseppe Condorelli <giuseppe.condorelli@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/uaccess_32.h