]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/um/os-Linux/uaccess.c
uml: get rid of do_longjmp
[mirror_ubuntu-bionic-kernel.git] / arch / um / os-Linux / uaccess.c
index 166fb66995df87e58793c6f99a33334324eaddce..8d27b6d1df91c58b69685fce86c2f4ae4ea9134e 100644 (file)
@@ -4,21 +4,19 @@
  * Licensed under the GPL
  */
 
-#include <setjmp.h>
-#include <string.h>
+#include <stddef.h>
 #include "longjmp.h"
 
 unsigned long __do_user_copy(void *to, const void *from, int n,
-                            void **fault_addr, void **fault_catcher,
+                            void **fault_addr, jmp_buf **fault_catcher,
                             void (*op)(void *to, const void *from,
                                        int n), int *faulted_out)
 {
        unsigned long *faddrp = (unsigned long *) fault_addr, ret;
-       int enable;
 
-       sigjmp_buf jbuf;
+       jmp_buf jbuf;
        *fault_catcher = &jbuf;
-       if(UML_SIGSETJMP(&jbuf, enable) == 0){
+       if(UML_SETJMP(&jbuf) == 0){
                (*op)(to, from, n);
                ret = 0;
                *faulted_out = 0;