diff options
author | Gerald Schaefer <geraldsc@de.ibm.com> | 2006-09-20 09:59:42 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-20 09:59:42 -0400 |
commit | d02765d1af743567398eb6d523dea0ba5e5e7e8e (patch) | |
tree | 9a39c21d9924a8d81ce85254cd3d013dbe50d23e /arch/s390/kernel/setup.c | |
parent | 6837a8c352efcc5efc70424e9bfd94ff9bfa9a47 (diff) |
[S390] Make user-copy operations run-time configurable.
Introduces a struct uaccess_ops which allows setting user-copy
operations at run-time.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r-- | arch/s390/kernel/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index f2a9165ca4f8..e229af59976c 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -51,6 +51,12 @@ | |||
51 | #include <asm/sections.h> | 51 | #include <asm/sections.h> |
52 | 52 | ||
53 | /* | 53 | /* |
54 | * User copy operations. | ||
55 | */ | ||
56 | struct uaccess_ops uaccess; | ||
57 | EXPORT_SYMBOL_GPL(uaccess); | ||
58 | |||
59 | /* | ||
54 | * Machine setup.. | 60 | * Machine setup.. |
55 | */ | 61 | */ |
56 | unsigned int console_mode = 0; | 62 | unsigned int console_mode = 0; |
@@ -641,6 +647,7 @@ setup_arch(char **cmdline_p) | |||
641 | 647 | ||
642 | memory_end = memory_size; | 648 | memory_end = memory_size; |
643 | 649 | ||
650 | memcpy(&uaccess, &uaccess_std, sizeof(uaccess)); | ||
644 | parse_early_param(); | 651 | parse_early_param(); |
645 | 652 | ||
646 | #ifndef CONFIG_64BIT | 653 | #ifndef CONFIG_64BIT |