From: Stefani Seibold Date: Tue, 3 Nov 2009 09:22:40 +0000 (+0100) Subject: x86, fs: Fix x86 procfs stack information for threads on 64-bit X-Git-Tag: v2.6.32-rc7~75^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89240ba059ca468ae7a8346edf7f95082458c2fc;p=pandora-kernel.git x86, fs: Fix x86 procfs stack information for threads on 64-bit This patch fixes two issues in the procfs stack information on x86-64 linux. The 32 bit loader compat_do_execve did not store stack start. (this was figured out by Alexey Dobriyan). The stack information on a x64_64 kernel always shows 0 kbyte stack usage, because of a missing implementation of the KSTK_ESP macro which always returned -1. The new implementation now returns the right value. Signed-off-by: Stefani Seibold Cc: Americo Wang Cc: Alexey Dobriyan Cc: Al Viro Cc: Andrew Morton LKML-Reference: <1257240160.4889.24.camel@wall-e> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed