ia64/xen-unstable

changeset 3416:6e1bbc139117 RELEASE-2.0.3

bitkeeper revision 1.1159.170.88 (41e40a79WiEU5QHfBOoYWsZfrMacOw)

Re-fix segment fixup code for Linux 2.4.
author kaf24@scramble.cl.cam.ac.uk
date Tue Jan 11 17:18:49 2005 +0000 (2005-01-11)
parents ee7636141b3e
children 5eede3946504 3552b3979933
files linux-2.6.10-xen-sparse/arch/xen/kernel/fixup.c
line diff
     1.1 --- a/linux-2.6.10-xen-sparse/arch/xen/kernel/fixup.c	Tue Jan 11 16:49:39 2005 +0000
     1.2 +++ b/linux-2.6.10-xen-sparse/arch/xen/kernel/fixup.c	Tue Jan 11 17:18:49 2005 +0000
     1.3 @@ -33,10 +33,17 @@
     1.4  #include <linux/slab.h>
     1.5  #include <linux/kernel.h>
     1.6  #include <linux/delay.h>
     1.7 +#include <linux/version.h>
     1.8  
     1.9  #define DP(_f) printk(KERN_ALERT "  " _f "\n")
    1.10  
    1.11 -fastcall void do_fixup_4gb_segment(struct pt_regs *regs, long error_code)
    1.12 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
    1.13 +#define __LINKAGE fastcall
    1.14 +#else
    1.15 +#define __LINKAGE asmlinkage
    1.16 +#endif
    1.17 +
    1.18 +__LINKAGE void do_fixup_4gb_segment(struct pt_regs *regs, long error_code)
    1.19  {
    1.20      static unsigned long printed = 0;
    1.21      int i;