[PATCH] uml: skas0 - separate kernel address space on stock hosts
[firefly-linux-kernel-4.4.55.git] / arch / um / os-Linux / sys-x86_64 / registers.c
index 6286c974bbeb0a44fc235aa3d47a88898bff37a0..44438d15c3d699c5492d903a2e87df3765efe550 100644 (file)
@@ -69,6 +69,11 @@ void init_registers(int pid)
                      err);
 }
 
+void get_safe_registers(unsigned long *regs)
+{
+       memcpy(regs, exec_regs, HOST_FRAME_SIZE * sizeof(unsigned long));
+}
+
 /*
  * Overrides for Emacs so that we follow Linus's tabbing style.
  * Emacs will notice this stuff at the end of the file and automatically