Skip to content
Commit 534e3adb authored by Richard Weinberger's avatar Richard Weinberger Committed by Linus Torvalds
Browse files

um: adjust current_thread_info() for newer gcc versions



In some cases gcc >= 4.5.2 will optimize away current_thread_info().  To
prevent gcc from doing so the stack address has to be obtained via inline
asm.

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Acked-by: default avatarKirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 365a0dea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment