]> git.baikalelectronics.ru Git - kernel.git/commit
sh: KSTK_EIP/KSTK_ESP consistency.
authorStuart Menefy <stuart.menefy@st.com>
Fri, 24 Nov 2006 03:53:02 +0000 (12:53 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 6 Dec 2006 01:45:38 +0000 (10:45 +0900)
commitab1f4394df2595b71e7986fe228a52a17ef0d1eb
treea7f675bcb2a282c0cb5b258b49514c73257eba8d
parentd2cc3c74b4c2a249476d236d99e0b889547a0e46
sh: KSTK_EIP/KSTK_ESP consistency.

Two of the fields in /proc/[number]/stat are documented in
proc(5) as:

      kstkesp %lu
     The current value of esp (stack pointer), as
     found in the kernel stack page for the process.

      kstkeip %lu
     The current EIP (instruction pointer).

The SH currently prints the the last SP and PC of the process
inside the kernel, while most other archs use the last user
space values.

This patch modifes the SH to display the user space values.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/processor.h