Skip to content

Commit

Permalink
sh: get_user fixes and nommu consolidation.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stuart Menefy authored and Paul Mundt committed Jan 28, 2008
1 parent fc55888 commit 0fb19dc
Showing 1 changed file with 98 additions and 155 deletions.
Loading

0 comments on commit 0fb19dc

Please sign in to comment.