Messages in this thread | | | Subject | Re: [PATCH] proc: fix ->stack_start in compat mode | From | Stefani Seibold <> | Date | Sun, 01 Nov 2009 16:06:46 +0100 |
| |
Am Sonntag, den 01.11.2009, 15:43 +0300 schrieb Alexey Dobriyan: > > > Stefani, I get "Stack usage: 0 kB", you may want to look at it. > > > > > > > Under which circumstance do you get 0 kb reported? What is your system > > (mmu/nommu, 32bit/64bit, architecture and so on). > > Well, no wonder it doesn't work: > > #define KSTK_ESP(tsk) -1 /* sorry. doesn't work for syscall. */ > > How does it supposed to work on live task?
Okay, you are right. That's really strange. I just build a 64 bit kernel i will try to fix this odd behavior. This is a break in the kernel API. KSTP_ESP should return the value of the kernel stack and not a -1. Sh..
| |