From 683a5952ac263e50661d2478e2b8d085b9d6b39b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 17 Jan 2008 14:39:21 +0000 Subject: [PATCH] minios: Optimize IA64's get_current() Let gcc access r13 itself, leading to better code Signed-off-by: Samuel Thibault --- include/ia64/arch_sched.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ia64/arch_sched.h b/include/ia64/arch_sched.h index 139a358..f5714a3 100644 --- a/include/ia64/arch_sched.h +++ b/include/ia64/arch_sched.h @@ -82,8 +82,7 @@ void arch_switch_threads(struct thread* prev, struct thread* next); static inline struct thread* get_current(void) { - struct thread *current; - __asm ("mov %0=r13" : "=r" (current)); + register struct thread *current asm("r13"); return current; } -- 2.39.5