[PATCH 0/2] x86: add arch_prctl to switch between native/compat modes

2016-04-06 Thread Dmitry Safonov
With those patches it becomes possible to tell the kernel in which mode current task is. I need it for compatibility process C/R: restorer is native x86_64 process, that maps vmas, restore task parameters, does clone to add threads and so on. To restore 32-bit application, that runs on x86_64 (in

[PATCH 0/2] x86: add arch_prctl to switch between native/compat modes

2016-04-06 Thread Dmitry Safonov
With those patches it becomes possible to tell the kernel in which mode current task is. I need it for compatibility process C/R: restorer is native x86_64 process, that maps vmas, restore task parameters, does clone to add threads and so on. To restore 32-bit application, that runs on x86_64 (in