ia64/xen-unstable

view xen/arch/ia64/patch/linux-2.6.11/unaligned.c @ 4703:d061c29af8d7

bitkeeper revision 1.1327.1.11 (42716283nLvDhTYM3QOqDMa-wZuJHQ)

More code cleanup
author djm@kirby.fc.hp.com
date Thu Apr 28 22:24:03 2005 +0000 (2005-04-28)
parents 58efb3448933
children ba75d06d25c5
line source
1 --- ../../linux-2.6.11/arch/ia64/kernel/unaligned.c 2005-03-02 00:38:25.000000000 -0700
2 +++ arch/ia64/unaligned.c 2005-04-28 15:40:13.000000000 -0600
3 @@ -437,7 +437,11 @@
4 }
7 +#ifdef XEN
8 +void
9 +#else
10 static void
11 +#endif
12 setreg (unsigned long regnum, unsigned long val, int nat, struct pt_regs *regs)
13 {
14 struct switch_stack *sw = (struct switch_stack *) regs - 1;
15 @@ -611,7 +615,11 @@
16 }
19 +#ifdef XEN
20 +void
21 +#else
22 static void
23 +#endif
24 getreg (unsigned long regnum, unsigned long *val, int *nat, struct pt_regs *regs)
25 {
26 struct switch_stack *sw = (struct switch_stack *) regs - 1;
27 @@ -1294,6 +1302,9 @@
28 void
29 ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs)
30 {
31 +#ifdef XEN
32 +printk("ia64_handle_unaligned: called, not working yet\n");
33 +#else
34 struct ia64_psr *ipsr = ia64_psr(regs);
35 mm_segment_t old_fs = get_fs();
36 unsigned long bundle[2];
37 @@ -1502,4 +1513,5 @@
38 si.si_imm = 0;
39 force_sig_info(SIGBUS, &si, current);
40 goto done;
41 +#endif
42 }