From: Dietmar Hahn Subject: [PATCH] mini-os: Patch in sched.h for ia64 Date: Thu, 19 Oct 2006 14:31:49 +0200 Message-ID: <200610191431.50045.dietmar.hahn@fujitsu-siemens.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_2A3NFAqPneiHyjd" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Grzegorz Milos Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_2A3NFAqPneiHyjd Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry, I forgot to append the patch. > Hi Gregor, > > for the ia64 port I added a line in mini-os/include/sched.h. > Thanks. > > Dietmar. > --Boundary-00=_2A3NFAqPneiHyjd Content-Type: text/x-diff; charset="iso-8859-15"; name="mini-os_sched.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mini-os_sched.patch" # HG changeset patch # User hahn@amur.mch.fsc.net # Date 1161260065 -7200 # Node ID bceae1ee499a3ce613d825165c825999f373bf73 # Parent 8e645cf5a78377a9eb1fae0bb7a279cdb57b85d3 Added a line for the ia64 port to get_current(). Signed-off-by: Dietmar Hahn diff -r 8e645cf5a783 -r bceae1ee499a extras/mini-os/include/sched.h --- a/extras/mini-os/include/sched.h Thu Oct 19 13:02:03 2006 +0200 +++ b/extras/mini-os/include/sched.h Thu Oct 19 14:14:25 2006 +0200 @@ -25,6 +25,8 @@ static inline struct thread* get_current struct thread **current; #ifdef __i386__ __asm__("andl %%esp,%0; ":"=r" (current) : "r" (~8191UL)); +#elif __ia64__ + __asm ("mov %0=r13" : "=r" (current)); #else __asm__("andq %%rsp,%0; ":"=r" (current) : "r" (~8191UL)); #endif --Boundary-00=_2A3NFAqPneiHyjd Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_2A3NFAqPneiHyjd--