# HG changeset patch # User hahn@xxxxxxxxxxxxxxxx # 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