/openbmc/linux/arch/x86/um/shared/sysdep/ |
H A D | stub_32.h | 15 static inline long stub_syscall0(long syscall) in stub_syscall0() argument 19 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall)); in stub_syscall0() 24 static inline long stub_syscall1(long syscall, long arg1) in stub_syscall1() argument 28 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1)); in stub_syscall1() 33 static inline long stub_syscall2(long syscall, long arg1, long arg2) in stub_syscall2() argument 37 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall2() 43 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3) in stub_syscall3() argument 47 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall3() 53 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3, in stub_syscall4() argument 58 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall4() [all …]
|
H A D | stub_64.h | 19 static inline long stub_syscall0(long syscall) in stub_syscall0() argument 25 : "0" (syscall) : __syscall_clobber ); in stub_syscall0() 30 static inline long stub_syscall2(long syscall, long arg1, long arg2) in stub_syscall2() argument 36 : "0" (syscall), "D" (arg1), "S" (arg2) : __syscall_clobber ); in stub_syscall2() 41 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3) in stub_syscall3() argument 47 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3) in stub_syscall3() 53 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3, in stub_syscall4() argument 60 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall4() 67 static inline long stub_syscall5(long syscall, long arg1, long arg2, long arg3, in stub_syscall5() argument 74 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall5()
|
/openbmc/u-boot/examples/api/ |
H A D | glue.c | 79 if (!syscall(API_GETC, NULL, &c)) in ub_getc() 89 if (!syscall(API_TSTC, NULL, &t)) in ub_tstc() 97 syscall(API_PUTC, NULL, &c); in ub_putc() 102 syscall(API_PUTS, NULL, s); in ub_puts() 113 syscall(API_RESET, NULL); in ub_reset() 128 if (!syscall(API_GET_SYS_INFO, &err, &si)) in ub_get_sys_info() 142 syscall(API_UDELAY, NULL, &usec); in ub_udelay() 149 if (!syscall(API_GET_TIMER, NULL, &cur, &base)) in ub_get_timer() 185 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum() 199 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum() [all …]
|
H A D | crt0.S | 19 .globl syscall 20 syscall: label 37 .globl syscall 38 syscall: label 52 .globl syscall 53 .ent syscall 54 syscall: label 62 .end syscall
|
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/ |
H A D | 0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch | 4 Subject: [PATCH] kexec-syscall.h: work around missing syscall() wrapper 8 kexec-syscall.h: In function 'kexec_load': 9 kexec-syscall.h:80:16: warning: implicit declaration of function 'syscall' 15 kexec/kexec-syscall.h | 21 +++++++++++++++++++++ 18 diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h 20 --- a/kexec/kexec-syscall.h 21 +++ b/kexec/kexec-syscall.h 30 return (long) syscall(__NR_kexec_load, entry, nr_segments, segments, flags); 62 return (long) syscall(__NR_kexec_file_load, kernel_fd, initrd_fd,
|
/openbmc/linux/arch/um/os-Linux/skas/ |
H A D | mem.c | 55 unsigned long * syscall; in do_syscall_stub() local 86 syscall = (unsigned long *)((unsigned long)data + data[0]); in do_syscall_stub() 88 __func__, syscall[0], ret, syscall[7]); in do_syscall_stub() 90 syscall[1], syscall[2], syscall[3], in do_syscall_stub() 91 syscall[4], syscall[5], syscall[6]); in do_syscall_stub() 109 long run_syscall_stub(struct mm_id * mm_idp, int syscall, in run_syscall_stub() argument 118 *stack++ = syscall; in run_syscall_stub()
|
/openbmc/linux/kernel/entry/ |
H A D | common.c | 38 static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) in syscall_enter_audit() argument 44 audit_syscall_entry(syscall, args[0], args[1], args[2], args[3]); in syscall_enter_audit() 48 static long syscall_trace_enter(struct pt_regs *regs, long syscall, in syscall_trace_enter() argument 78 syscall = syscall_get_nr(current, regs); in syscall_trace_enter() 81 trace_sys_enter(regs, syscall); in syscall_trace_enter() 86 syscall = syscall_get_nr(current, regs); in syscall_trace_enter() 89 syscall_enter_audit(regs, syscall); in syscall_trace_enter() 91 return ret ? : syscall; in syscall_trace_enter() 95 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work() argument 100 syscall = syscall_trace_enter(regs, syscall, work); in __syscall_enter_from_user_work() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/musl/musl/ |
H A D | 0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch | 9 arch/riscv32/bits/syscall.h.in | 11 +++++++++++ 10 arch/riscv64/bits/syscall.h.in | 11 +++++++++++ 13 diff --git a/arch/riscv32/bits/syscall.h.in b/arch/riscv32/bits/syscall.h.in 15 --- a/arch/riscv32/bits/syscall.h.in 16 +++ b/arch/riscv32/bits/syscall.h.in 42 diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in 44 --- a/arch/riscv64/bits/syscall.h.in 45 +++ b/arch/riscv64/bits/syscall.h.in
|
/openbmc/linux/arch/mips/kernel/ |
H A D | scall64-n32.S | 35 dsubu t0, v0, __NR_N32_Linux # check syscall number 39 ld t1, PT_EPC(sp) # skip syscall on return 45 sd a3, PT_R26(sp) # save a3 for syscall restarting 47 LONG_S v0, TI_SYSCALL($28) # Store syscall number 50 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? 65 ld t1, PT_R2(sp) # syscall number 67 sd t1, PT_R0(sp) # save it for syscall restarting 79 bltz v0, 1f # seccomp failed? Skip syscall 82 ld v0, PT_R2(sp) # Restore syscall (maybe modified) 90 dsubu t2, v0, __NR_N32_Linux # check (new) syscall number
|
H A D | scall64-o32.S | 34 ld t1, PT_EPC(sp) # skip syscall on return 36 dsubu t0, v0, __NR_O32_Linux # check syscall number 55 sd a3, PT_R26(sp) # save a3 for syscall restarting 92 LONG_S a0, TI_SYSCALL($28) # Save a0 as syscall number 95 LONG_S v0, TI_SYSCALL($28) # Save v0 as syscall number 99 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? 114 ld t1, PT_R2(sp) # syscall number 116 sd t1, PT_R0(sp) # save it for syscall restarting 134 bltz v0, 1f # seccomp failed? Skip syscall 137 ld v0, PT_R2(sp) # Restore syscall (maybe modified) [all …]
|
H A D | scall32-o32.S | 32 lw t1, PT_EPC(sp) # skip syscall on return 37 sw a3, PT_R26(sp) # save a3 for syscall restarting 86 LONG_S a0, TI_SYSCALL($28) # Save a0 as syscall number 89 LONG_S v0, TI_SYSCALL($28) # Save v0 as syscall number 92 lw t0, TI_FLAGS($28) # syscall tracing enabled? 97 subu v0, v0, __NR_O32_Linux # check syscall number 104 lw t2, (t1) # syscall routine 115 lw t1, PT_R2(sp) # syscall number 117 sw t1, PT_R0(sp) # save it for syscall restarting 131 bltz v0, 1f # seccomp failed? Skip syscall [all …]
|
H A D | scall64-n64.S | 42 ld t1, PT_EPC(sp) # skip syscall on return 47 sd a3, PT_R26(sp) # save a3 for syscall restarting 49 LONG_S v0, TI_SYSCALL($28) # Store syscall number 52 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? 64 ld t2, (t0) # syscall routine 74 ld t1, PT_R2(sp) # syscall number 76 sd t1, PT_R0(sp) # save it for syscall restarting 89 bltz v0, 1f # seccomp failed? Skip syscall 92 ld v0, PT_R2(sp) # Restore syscall (maybe modified)
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | fsgsbase.c | 165 if (syscall(SYS_arch_prctl, ARCH_SET_GS, value) != 0) in check_gs_value() 179 if (syscall(SYS_arch_prctl, ARCH_GET_GS, &base) != 0) in check_gs_value() 196 if (syscall(SYS_arch_prctl, ARCH_SET_GS, initial_base) != 0) in mov_0_gs() 204 if (syscall(SYS_arch_prctl, ARCH_GET_GS, &arch_base) != 0) in mov_0_gs() 233 if (syscall(SYS_arch_prctl, ARCH_SET_GS, to_set) != 0) in do_remote_base() 255 if (syscall(SYS_arch_prctl, ARCH_SET_GS, 0) != 0) in load_gs() 270 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) == 0) { in load_gs() 319 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_wrbase() 321 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_wrbase() 339 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/libaio/libaio/ |
H A D | 00_arches.patch | 11 src/syscall-m68k.h | 78 +++++++++++++++ 12 src/syscall-mips.h | 223 +++++++++++++++++++++++++++++++++++++++++++ 13 src/syscall-parisc.h | 146 ++++++++++++++++++++++++++++ 14 src/syscall.h | 6 ++ 16 create mode 100644 src/syscall-m68k.h 17 create mode 100644 src/syscall-mips.h 18 create mode 100644 src/syscall-parisc.h 20 diff --git a/src/syscall-m68k.h b/src/syscall-m68k.h 24 +++ b/src/syscall-m68k.h 104 diff --git a/src/syscall-mips.h b/src/syscall-mips.h [all …]
|
/openbmc/linux/arch/powerpc/kernel/syscalls/ |
H A D | Makefile | 7 syscall := $(src)/syscall.tbl macro 18 $(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE 22 $(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE 26 $(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE 30 $(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE 34 $(kapi)/syscall_table_spu.h: $(syscall) $(systbl) FORCE
|
/openbmc/linux/arch/um/kernel/skas/ |
H A D | syscall.c | 19 int syscall; in handle_syscall() local 43 syscall = UPT_SYSCALL_NR(r); in handle_syscall() 44 if (syscall >= 0 && syscall < __NR_syscalls) in handle_syscall() 46 EXECUTE_SYSCALL(syscall, regs)); in handle_syscall()
|
/openbmc/linux/arch/s390/kernel/syscalls/ |
H A D | Makefile | 7 syscall := $(srctree)/$(src)/syscall.tbl macro 33 $(uapi)/unistd_32.h: $(syscall) FORCE 37 $(uapi)/unistd_64.h: $(syscall) FORCE 40 $(kapi)/syscall_table.h: $(syscall) FORCE 44 $(kapi)/unistd_nr.h: $(syscall) FORCE
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | map_ops.c | 13 (void)syscall(__NR_getpid); in map_update() 18 (void)syscall(__NR_getppid); in map_delete() 23 (void)syscall(__NR_getuid); in map_push() 28 (void)syscall(__NR_geteuid); in map_pop() 33 (void)syscall(__NR_getgid); in map_peek() 38 (void)syscall(__NR_gettid); in map_for_each_pass() 43 (void)syscall(__NR_getpgid); in map_for_each_fail()
|
/openbmc/linux/Documentation/powerpc/ |
H A D | syscall64-abi.rst | 5 syscall chapter 10 The syscall is made with the sc instruction, and returns with execution 17 syscall calling sequence\ [1]_ matches the Power Architecture 64-bit ELF ABI 28 There is a maximum of 6 integer parameters to a syscall, passed in r3-r8. 34 clear, the syscall succeeded and r3 is the return value. When cr0.SO is set, 35 the syscall failed and r3 is the error value (that normally corresponds to 88 transaction state, and the syscall can affect the behavior of the transaction. 90 If the processor is in suspended state when a syscall is made, the syscall 91 will be performed as normal, and will return as normal. The syscall will be 93 to the usual transactional memory semantics. A syscall may or may not result [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | syscalltbl.c | 47 struct syscall { struct 55 const struct syscall *entry = ventry; in syscallcmpname() argument 62 const struct syscall *a = va, *b = vb; in syscallcmp() 70 struct syscall *entries; in syscalltbl__init_native() 76 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native() 88 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native() 119 struct syscall *sc = bsearch(name, tbl->syscalls.entries, in syscalltbl__id() 129 struct syscall *syscalls = tbl->syscalls.entries; in syscalltbl__strglobmatch_next()
|
/openbmc/linux/samples/seccomp/ |
H A D | bpf-direct.c | 65 int syscall; in emulator() local 73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; in emulator() 77 if (syscall != __NR_write) in emulator() 172 syscall(__NR_write, STDOUT_FILENO, in main() 174 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)); in main() 175 syscall(__NR_write, STDOUT_FILENO, payload("HELLO, ")); in main() 176 syscall(__NR_write, STDOUT_FILENO, buf, bytes); in main() 177 syscall(__NR_write, STDERR_FILENO, in main()
|
/openbmc/openbmc/poky/meta/recipes-devtools/valgrind/valgrind/ |
H A D | 0001-memcheck-tests-Fix-timerfd-syscall-test.patch | 4 Subject: [PATCH] memcheck/tests: Fix timerfd syscall test 8 have the implementation or syscall is not defined 15 memcheck/tests/linux/timerfd-syscall.c | 10 ++++++++-- 33 sys/syscall.h \ 40 --- a/memcheck/tests/linux/timerfd-syscall.c 41 +++ b/memcheck/tests/linux/timerfd-syscall.c 90 return syscall(__NR_timerfd_create, clockid, flags); 93 return syscall(__NR_timerfd_gettime, ufc, otmr);
|
/openbmc/linux/tools/testing/selftests/arm64/abi/ |
H A D | Makefile | 4 TEST_GEN_PROGS := hwcap ptrace syscall-abi tpidr2 8 $(OUTPUT)/syscall-abi: syscall-abi.c syscall-abi-asm.S
|
/openbmc/u-boot/api/ |
H A D | README | 6 - there is a single entry point (syscall) to the API 8 - per current design the syscall is a C-callable function in the U-Boot 9 text, which might evolve into a real syscall using machine exception trap 15 - upon entry, the syscall dispatches the call to other (existing) U-Boot 44 - implements the single entry point (mimics UNIX syscall) 47 - entry point at the consumer side, allows to make syscall, mandatory 51 the syscall directly, but in a more friendly manner (a la libc calls),
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/ |
H A D | 0004-qemu-Do-not-include-file-if-not-exists.patch | 15 linux-user/syscall.c | 2 ++ 18 diff --git a/linux-user/syscall.c b/linux-user/syscall.c 20 --- a/linux-user/syscall.c 21 +++ b/linux-user/syscall.c
|