Le 12/12/2019 à 13:51, Christoph Hellwig a écrit :
Why can't current_stack_pointer be turned into an inline function using
inline assembly? That would reduce the overhead for all callers.
In the old days, it was a macro, and it was changed into an assembly
function by commit
https://git.
Why can't current_stack_pointer be turned into an inline function using
inline assembly? That would reduce the overhead for all callers.
Before commit 7306e83ccf5c ("powerpc: Don't use CURRENT_THREAD_INFO to
find the stack"), the current stack base address was obtained by
calling current_thread_info(). That inline function was simply masking
out the value of r1.
In that commit, it was changed to using current_stack_pointer(), which