debuggers.hg

view xen/arch/ia64/patch/linux-2.6.11/sal.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 sal.h | 17 +++++++++++++++++
2 1 files changed, 17 insertions(+)
4 Index: linux-2.6.11-xendiffs/include/asm-ia64/sal.h
5 ===================================================================
6 --- linux-2.6.11-xendiffs.orig/include/asm-ia64/sal.h 2005-04-08 12:00:53.510988510 -0500
7 +++ linux-2.6.11-xendiffs/include/asm-ia64/sal.h 2005-04-08 12:02:17.778587216 -0500
8 @@ -36,6 +36,7 @@
9 #ifndef __ASSEMBLY__
11 #include <linux/bcd.h>
12 +#include <linux/preempt.h>
13 #include <linux/spinlock.h>
14 #include <linux/efi.h>
16 @@ -650,7 +651,23 @@ ia64_sal_freq_base (unsigned long which,
17 {
18 struct ia64_sal_retval isrv;
20 +//#ifdef XEN
21 +#if 0
22 + unsigned long *x = (unsigned long *)ia64_sal;
23 + unsigned long *inst = (unsigned long *)*x;
24 + unsigned long __ia64_sc_flags;
25 + struct ia64_fpreg __ia64_sc_fr[6];
26 +printf("ia64_sal_freq_base: about to save_scratch_fpregs\n");
27 + ia64_save_scratch_fpregs(__ia64_sc_fr);
28 + spin_lock_irqsave(&sal_lock, __ia64_sc_flags);
29 +printf("ia64_sal_freq_base: about to call, ia64_sal=%p, ia64_sal[0]=%p, ia64_sal[1]=%p\n",x,x[0],x[1]);
30 +printf("first inst=%p,%p\n",inst[0],inst[1]);
31 + isrv = (*ia64_sal)(SAL_FREQ_BASE, which, 0, 0, 0, 0, 0, 0);
32 + spin_unlock_irqrestore(&sal_lock, __ia64_sc_flags);
33 + ia64_load_scratch_fpregs(__ia64_sc_fr);
34 +#else
35 SAL_CALL(isrv, SAL_FREQ_BASE, which, 0, 0, 0, 0, 0, 0);
36 +#endif
37 *ticks_per_second = isrv.v0;
38 *drift_info = isrv.v1;
39 return isrv.status;