WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] minios: Optimize IA64's get_current()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] minios: Optimize IA64's get_current()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Jan 2008 15:20:14 -0800
Delivery-date: Thu, 17 Jan 2008 15:20:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200580761 0
# Node ID e51bf624433aa8439a6f5c6676bb79850a2cd1a8
# Parent  0a88a8fe5e97870302fa7b65d9a0b3a3f6bab3d1
minios: Optimize IA64's get_current()

Let gcc access r13 itself, leading to better code

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxx>
---
 extras/mini-os/include/ia64/arch_sched.h |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r 0a88a8fe5e97 -r e51bf624433a extras/mini-os/include/ia64/arch_sched.h
--- a/extras/mini-os/include/ia64/arch_sched.h  Thu Jan 17 13:03:22 2008 +0000
+++ b/extras/mini-os/include/ia64/arch_sched.h  Thu Jan 17 14:39:21 2008 +0000
@@ -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));
+       register struct thread *current asm("r13");
        return current;
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] minios: Optimize IA64's get_current(), Xen patchbot-unstable <=