ia64/xen-unstable

changeset 16730:e51bf624433a

minios: Optimize IA64's get_current()

Let gcc access r13 itself, leading to better code

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 17 14:39:21 2008 +0000 (2008-01-17)
parents 0a88a8fe5e97
children 03c2236e0089
files extras/mini-os/include/ia64/arch_sched.h
line diff
     1.1 --- a/extras/mini-os/include/ia64/arch_sched.h	Thu Jan 17 13:03:22 2008 +0000
     1.2 +++ b/extras/mini-os/include/ia64/arch_sched.h	Thu Jan 17 14:39:21 2008 +0000
     1.3 @@ -82,8 +82,7 @@ void arch_switch_threads(struct thread* 
     1.4  
     1.5  static inline struct thread* get_current(void)
     1.6  {
     1.7 -	struct thread *current;
     1.8 -	__asm ("mov %0=r13" : "=r" (current));
     1.9 +	register struct thread *current asm("r13");
    1.10  	return current;
    1.11  }
    1.12