debuggers.hg

view xen/arch/ia64/patch/linux-2.6.11/mca_asm.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 mca_asm.h | 11 +++++++++++
2 1 files changed, 11 insertions(+)
4 Index: linux-2.6.11-xendiffs/include/asm-ia64/mca_asm.h
5 ===================================================================
6 --- linux-2.6.11-xendiffs.orig/include/asm-ia64/mca_asm.h 2005-03-02 01:38:38.000000000 -0600
7 +++ linux-2.6.11-xendiffs/include/asm-ia64/mca_asm.h 2005-04-06 22:41:57.392411032 -0500
8 @@ -26,8 +26,13 @@
9 * direct mapped to physical addresses.
10 * 1. Lop off bits 61 thru 63 in the virtual address
11 */
12 +#ifdef XEN
13 +#define INST_VA_TO_PA(addr) \
14 + dep addr = 0, addr, 60, 4
15 +#else // XEN
16 #define INST_VA_TO_PA(addr) \
17 dep addr = 0, addr, 61, 3
18 +#endif // XEN
19 /*
20 * This macro converts a data virtual address to a physical address
21 * Right now for simulation purposes the virtual addresses are
22 @@ -42,9 +47,15 @@
23 * direct mapped to physical addresses.
24 * 1. Put 0x7 in bits 61 thru 63.
25 */
26 +#ifdef XEN
27 +#define DATA_PA_TO_VA(addr,temp) \
28 + mov temp = 0xf ;; \
29 + dep addr = temp, addr, 60, 4
30 +#else // XEN
31 #define DATA_PA_TO_VA(addr,temp) \
32 mov temp = 0x7 ;; \
33 dep addr = temp, addr, 61, 3
34 +#endif // XEN
36 #define GET_THIS_PADDR(reg, var) \
37 mov reg = IA64_KR(PER_CPU_DATA);; \