Optimize IA64's get_current()
PATCH 1/1 Optimize IA64's get_current()
Let gcc access r13 itself, leading to better code
Signed-off-by Samuel Thibault <[email protected]>
extras/mini-os/include/ia64/arch_sched.h +1 -2
@@ -82,8 +82,7 @@ void arch_switch_threads(struct thread*static inline struct thread *get_current (void ) { -struct thread *current; - __asm ("mov %0=r13" :"=r" (current)); + registerstruct thread *current asm("r13" );return current; }