Commit f15dfc61 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin

infect: Move __NR32_mmap into compel headers

This remove parasite-syscall.h from infect.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent c954ac16
#ifndef __COMPEL_SYSCALL_H__ #ifndef __COMPEL_SYSCALL_H__
#define __COMPEL_SYSCALL_H__ #define __COMPEL_SYSCALL_H__
#define __NR(syscall, compat) ((compat) ? __NR32_##syscall : __NR_##syscall) #define __NR(syscall, compat) ((compat) ? __NR32_##syscall : __NR_##syscall)
/*
* For x86_32 __NR_mmap inside the kernel represents old_mmap system
* call, but since we didn't use it yet lets go further and simply
* define own alias for __NR_mmap2 which would allow us to unify code
* between 32 and 64 bits version.
*/
#define __NR32_mmap __NR32_mmap2
#endif #endif
...@@ -5,13 +5,4 @@ ...@@ -5,13 +5,4 @@
struct parasite_ctl; struct parasite_ctl;
/*
* For x86_32 __NR_mmap inside the kernel represents old_mmap system
* call, but since we didn't use it yet lets go further and simply
* define own alias for __NR_mmap2 which would allow us to unify code
* between 32 and 64 bits version.
*/
#define __NR32_mmap __NR32_mmap2
#endif #endif
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <sys/user.h> #include <sys/user.h>
#include "asm/processor-flags.h" #include "asm/processor-flags.h"
#include "asm/parasite-syscall.h"
#include "uapi/std/syscall-codes.h" #include "uapi/std/syscall-codes.h"
#include "compel/include/asm/syscall.h" #include "compel/include/asm/syscall.h"
#include "compel/include/asm/ptrace.h" #include "compel/include/asm/ptrace.h"
...@@ -15,7 +14,6 @@ ...@@ -15,7 +14,6 @@
#include "asm/types.h" #include "asm/types.h"
#include "errno.h" #include "errno.h"
#include "asm/cpu.h" #include "asm/cpu.h"
#include "parasite-syscall.h"
#include "ptrace.h" #include "ptrace.h"
#include "kerndat.h" #include "kerndat.h"
#include "infect.h" #include "infect.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment