]> err.no Git - linux-2.6/blobdiff - arch/s390/kernel/setup.c
[PATCH] Add comments to the PDA structure to annotate offsets
[linux-2.6] / arch / s390 / kernel / setup.c
index f2a9165ca4f8688df3fbec1bbeb3291b1cddb8d6..e3d9325f6022b04e3bf307bdc3549362231c75ea 100644 (file)
 #include <asm/ptrace.h>
 #include <asm/sections.h>
 
+/*
+ * User copy operations.
+ */
+struct uaccess_ops uaccess;
+EXPORT_SYMBOL_GPL(uaccess);
+
 /*
  * Machine setup..
  */
@@ -641,6 +647,11 @@ setup_arch(char **cmdline_p)
 
        memory_end = memory_size;
 
+       if (MACHINE_HAS_MVCOS)
+               memcpy(&uaccess, &uaccess_mvcos, sizeof(uaccess));
+       else
+               memcpy(&uaccess, &uaccess_std, sizeof(uaccess));
+
        parse_early_param();
 
 #ifndef CONFIG_64BIT