Release 4.14 arch/x86/um/shared/sysdep/stub_32.h
/*
* Copyright (C) 2004 Jeff Dike (jdike@addtoit.com)
* Licensed under the GPL
*/
#ifndef __SYSDEP_STUB_H
#define __SYSDEP_STUB_H
#include <asm/ptrace.h>
#define STUB_SYSCALL_RET EAX
#define STUB_MMAP_NR __NR_mmap2
#define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT)
static inline long stub_syscall0(long syscall)
{
long ret;
__asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall));
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
static inline long stub_syscall1(long syscall, long arg1)
{
long ret;
__asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1));
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paolo 'Blaisorblade' Giarrusso | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
static inline long stub_syscall2(long syscall, long arg1, long arg2)
{
long ret;
__asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
"c" (arg2));
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bodo Stroesser | 23 | 92.00% | 1 | 50.00% |
Paolo 'Blaisorblade' Giarrusso | 2 | 8.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3)
{
long ret;
__asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
"c" (arg2), "d" (arg3));
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bodo Stroesser | 21 | 75.00% | 1 | 50.00% |
Paolo 'Blaisorblade' Giarrusso | 7 | 25.00% | 1 | 50.00% |
Total | 28 | 100.00% | 2 | 100.00% |
static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3,
long arg4)
{
long ret;
__asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
"c" (arg2), "d" (arg3), "S" (arg4));
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bodo Stroesser | 22 | 70.97% | 1 | 50.00% |
Paolo 'Blaisorblade' Giarrusso | 9 | 29.03% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
static inline long stub_syscall5(long syscall, long arg1, long arg2, long arg3,
long arg4, long arg5)
{
long ret;
__asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
"c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5));
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paolo 'Blaisorblade' Giarrusso | 28 | 82.35% | 1 | 50.00% |
Bodo Stroesser | 6 | 17.65% | 1 | 50.00% |
Total | 34 | 100.00% | 2 | 100.00% |
static inline void trap_myself(void)
{
__asm("int3");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bodo Stroesser | 6 | 60.00% | 1 | 50.00% |
Jeff Dike | 4 | 40.00% | 1 | 50.00% |
Total | 10 | 100.00% | 2 | 100.00% |
static inline void remap_stack(int fd, unsigned long offset)
{
__asm__ volatile ("movl %%eax,%%ebp ; movl %0,%%eax ; int $0x80 ;"
"movl %7, %%ebx ; movl %%eax, (%%ebx)"
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
"c" (UM_KERN_PAGE_SIZE),
"d" (PROT_READ | PROT_WRITE),
"S" (MAP_FIXED | MAP_SHARED), "D" (fd),
"a" (offset),
"i" (&((struct stub_data *) STUB_DATA)->err)
: "memory");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 10 | 58.82% | 2 | 66.67% |
Bodo Stroesser | 7 | 41.18% | 1 | 33.33% |
Total | 17 | 100.00% | 3 | 100.00% |
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bodo Stroesser | 85 | 39.91% | 1 | 14.29% |
Paolo 'Blaisorblade' Giarrusso | 68 | 31.92% | 1 | 14.29% |
Jeff Dike | 60 | 28.17% | 5 | 71.43% |
Total | 213 | 100.00% | 7 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.