debuggers.hg

view xen/arch/ia64/patch/linux-2.6.11/current.h @ 4615:58efb3448933

bitkeeper revision 1.1327.1.1 (426536d2PUqtjTi2v06bzD10RFwarg)

Merge bk://xen.bkbits.net/xeno-unstable.bk
into bkbits.net:/repos/x/xen-ia64/xeno-unstable-ia64.bk
author xen-ia64.adm@bkbits.net
date Tue Apr 19 16:50:26 2005 +0000 (2005-04-19)
parents f1c946e1226a
children 5b9e241131fb
line source
1 current.h | 8 ++++++++
2 1 files changed, 8 insertions(+)
4 Index: linux-2.6.11/include/asm-ia64/current.h
5 ===================================================================
6 --- linux-2.6.11.orig/include/asm-ia64/current.h 2005-03-02 01:38:19.000000000 -0600
7 +++ linux-2.6.11/include/asm-ia64/current.h 2005-03-19 12:39:41.410955288 -0600
8 @@ -12,6 +12,14 @@
9 * In kernel mode, thread pointer (r13) is used to point to the current task
10 * structure.
11 */
12 +#ifdef XEN
13 +struct domain;
14 +#define get_current() ((struct exec_domain *) ia64_getreg(_IA64_REG_TP))
15 +#define current get_current()
16 +//#define set_current(d) ia64_setreg(_IA64_REG_TP,(void *)d);
17 +#define set_current(d) (ia64_r13 = (void *)d)
18 +#else
19 #define current ((struct task_struct *) ia64_getreg(_IA64_REG_TP))
20 +#endif
22 #endif /* _ASM_IA64_CURRENT_H */