]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/compat.h
x86: delete the arch-specific dma-mapping headers.
[linux-2.6-omap-h63xx.git] / include / asm-x86 / compat.h
index 53cb96b68a62bcb1f040e78381e9e9e562cbb0f8..1793ac317a30417523cc84fb5d4b2f583b1b4a01 100644 (file)
@@ -6,6 +6,7 @@
  */
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <asm/user32.h>
 
 #define COMPAT_USER_HZ 100
 
@@ -180,11 +181,16 @@ struct compat_shmid64_ds {
        compat_ulong_t __unused5;
 };
 
+/*
+ * The type of struct elf_prstatus.pr_reg in compatible core dumps.
+ */
+typedef struct user_regs_struct32 compat_elf_gregset_t;
+
 /*
  * A pointer passed in from user mode. This should not
  * be used for syscall parameters, just declare them
  * as pointers because the syscall entry code will have
- * appropriately comverted them already.
+ * appropriately converted them already.
  */
 typedef        u32             compat_uptr_t;
 
@@ -198,10 +204,10 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)
        return (u32)(unsigned long)uptr;
 }
 
-static __inline__ void __user *compat_alloc_user_space(long len)
+static inline void __user *compat_alloc_user_space(long len)
 {
        struct pt_regs *regs = task_pt_regs(current);
-       return (void __user *)regs->rsp - len; 
+       return (void __user *)regs->sp - len;
 }
 
 static inline int is_compat_task(void)