| /OK3568_Linux_fs/u-boot/examples/api/ |
| H A D | glue.c | 80 if (!syscall(API_GETC, NULL, &c)) in ub_getc() 90 if (!syscall(API_TSTC, NULL, &t)) in ub_tstc() 98 syscall(API_PUTC, NULL, &c); in ub_putc() 103 syscall(API_PUTS, NULL, s); in ub_puts() 114 syscall(API_RESET, NULL); in ub_reset() 129 if (!syscall(API_GET_SYS_INFO, &err, &si)) in ub_get_sys_info() 143 syscall(API_UDELAY, NULL, &usec); in ub_udelay() 150 if (!syscall(API_GET_TIMER, NULL, &cur, &base)) in ub_get_timer() 186 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum() 200 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum() [all …]
|
| H A D | crt0.S | 20 .globl syscall symbol 21 syscall: label 38 .globl syscall symbol 39 syscall: label 53 .globl syscall symbol 54 .ent syscall 55 syscall: label 63 .end syscall
|
| /OK3568_Linux_fs/kernel/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 | 18 static inline long stub_syscall0(long syscall) in stub_syscall0() argument 24 : "0" (syscall) : __syscall_clobber ); in stub_syscall0() 29 static inline long stub_syscall2(long syscall, long arg1, long arg2) in stub_syscall2() argument 35 : "0" (syscall), "D" (arg1), "S" (arg2) : __syscall_clobber ); in stub_syscall2() 40 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3) in stub_syscall3() argument 46 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3) in stub_syscall3() 52 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3, in stub_syscall4() argument 59 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall4() 66 static inline long stub_syscall5(long syscall, long arg1, long arg2, long arg3, in stub_syscall5() argument 73 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall5()
|
| /OK3568_Linux_fs/buildroot/package/ljsyscall/ |
| H A D | ljsyscall.mk | 32 $(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall 33 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/ $(@D)/syscall.lua 34 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall $(@D)/syscall/*.lua 36 $(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall/linux/$(LJSYSCALL_ARCH) 37 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/linux/ $(@D)/syscall/linux/*.lua 38 …$(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/linux/$(LJSYSCALL_ARCH) $(@D)/syscall/linux/… 40 $(INSTALL) -d $(LJSYSCALL_TARGET_DIR)/syscall/shared 41 $(INSTALL) -m 0644 -t $(LJSYSCALL_TARGET_DIR)/syscall/shared/ $(@D)/syscall/shared/*.lua
|
| /OK3568_Linux_fs/kernel/tools/perf/examples/bpf/ |
| H A D | augmented_syscalls.c | 37 #define augmented_filename_syscall(syscall) \ argument 38 struct augmented_enter_##syscall##_args { \ 39 struct syscall_enter_##syscall##_args args; \ 42 int syscall_enter(syscall)(struct syscall_enter_##syscall##_args *args) \ 44 struct augmented_enter_##syscall##_args augmented_args = { .filename.reserved = 0, }; \ 58 int syscall_exit(syscall)(struct syscall_exit_args *args) \ 109 #define augmented_sockaddr_syscall(syscall) \ argument 110 struct augmented_enter_##syscall##_args { \ 111 struct syscall_enter_##syscall##_args args; \ 114 int syscall_enter(syscall)(struct syscall_enter_##syscall##_args *args) \ [all …]
|
| H A D | etcsnoop.c | 33 #define augmented_filename_syscall_enter(syscall) \ argument 34 struct augmented_enter_##syscall##_args { \ 35 struct syscall_enter_##syscall##_args args; \ 38 int syscall_enter(syscall)(struct syscall_enter_##syscall##_args *args) \ 41 struct augmented_enter_##syscall##_args augmented_args = { .filename.reserved = 0, }; \
|
| /OK3568_Linux_fs/yocto/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,
|
| /OK3568_Linux_fs/kernel/arch/um/os-Linux/skas/ |
| H A D | mem.c | 53 unsigned long * syscall; in do_syscall_stub() local 84 syscall = (unsigned long *)((unsigned long)data + data[0]); in do_syscall_stub() 87 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() 110 long run_syscall_stub(struct mm_id * mm_idp, int syscall, in run_syscall_stub() argument 119 *stack++ = syscall; in run_syscall_stub()
|
| /OK3568_Linux_fs/kernel/kernel/entry/ |
| H A D | common.c | 34 static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) in syscall_enter_audit() argument 40 audit_syscall_entry(syscall, args[0], args[1], args[2], args[3]); in syscall_enter_audit() 44 static long syscall_trace_enter(struct pt_regs *regs, long syscall, in syscall_trace_enter() argument 64 syscall = syscall_get_nr(current, regs); in syscall_trace_enter() 67 trace_sys_enter(regs, syscall); in syscall_trace_enter() 69 syscall_enter_audit(regs, syscall); in syscall_trace_enter() 71 return ret ? : syscall; in syscall_trace_enter() 75 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work() argument 81 syscall = syscall_trace_enter(regs, syscall, ti_work); in __syscall_enter_from_user_work() 83 return syscall; in __syscall_enter_from_user_work() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/syscalls/ |
| H A D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 25 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 29 $(uapi)/unistd_64.h: $(syscall) $(syshdr) 34 $(kapi)/syscall_table_32.h: $(syscall) $(systbl) 39 $(kapi)/syscall_table_64.h: $(syscall) $(systbl) 44 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl) 49 $(kapi)/syscall_table_spu.h: $(syscall) $(systbl)
|
| /OK3568_Linux_fs/yocto/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 …]
|
| /OK3568_Linux_fs/kernel/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 48 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? 63 ld t1, PT_R2(sp) # syscall number 65 sd t1, PT_R0(sp) # save it for syscall restarting 78 bltz v0, 1f # seccomp failed? Skip syscall 81 ld v0, PT_R2(sp) # Restore syscall (maybe modified) 89 dsubu t2, v0, __NR_N32_Linux # check (new) syscall number
|
| H A D | scall64-n64.S | 43 ld t1, PT_EPC(sp) # skip syscall on return 48 sd a3, PT_R26(sp) # save a3 for syscall restarting 51 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? 63 ld t2, (t0) # syscall routine 73 ld t1, PT_R2(sp) # syscall number 75 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)
|
| H A D | scall32-o32.S | 33 lw t1, PT_EPC(sp) # skip syscall on return 38 sw a3, PT_R26(sp) # save a3 for syscall restarting 83 lw t0, TI_FLAGS($28) # syscall tracing enabled? 88 subu v0, v0, __NR_O32_Linux # check syscall number 95 lw t2, (t1) # syscall routine 106 lw t1, PT_R2(sp) # syscall number 108 sw t1, PT_R0(sp) # save it for syscall restarting 131 bltz v0, 1f # seccomp failed? Skip syscall 134 lw v0, PT_R2(sp) # Restore syscall (maybe modified) 184 subu t0, a0, __NR_O32_Linux # check syscall number [all …]
|
| 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 83 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? 98 ld t1, PT_R2(sp) # syscall number 100 sd t1, PT_R0(sp) # save it for syscall restarting 133 bltz v0, 1f # seccomp failed? Skip syscall 136 ld v0, PT_R2(sp) # Restore syscall (maybe modified) 146 dsubu t0, v0, __NR_O32_Linux # check (new) syscall number 195 subu t0, a0, __NR_O32_Linux # check syscall number [all …]
|
| /OK3568_Linux_fs/kernel/arch/parisc/kernel/syscalls/ |
| H A D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 25 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 29 $(uapi)/unistd_64.h: $(syscall) $(syshdr) 33 $(kapi)/syscall_table_32.h: $(syscall) $(systbl) 37 $(kapi)/syscall_table_64.h: $(syscall) $(systbl) 42 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl)
|
| /OK3568_Linux_fs/kernel/arch/sparc/kernel/syscalls/ |
| H A D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 25 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 29 $(uapi)/unistd_64.h: $(syscall) $(syshdr) 33 $(kapi)/syscall_table_32.h: $(syscall) $(systbl) 37 $(kapi)/syscall_table_64.h: $(syscall) $(systbl) 42 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl)
|
| /OK3568_Linux_fs/kernel/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 75 transaction state, and the syscall can affect the behavior of the transaction. 77 If the processor is in suspended state when a syscall is made, the syscall 78 will be performed as normal, and will return as normal. The syscall will be 80 to the usual transactional memory semantics. A syscall may or may not result [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/tools/ |
| H A D | Makefile | 14 syscall := $(srctree)/$(src)/syscall.tbl macro 58 $(uapi)/unistd-common.h: $(syscall) $(syshdr) FORCE 62 $(uapi)/unistd-oabi.h: $(syscall) $(syshdr) FORCE 66 $(uapi)/unistd-eabi.h: $(syscall) $(syshdr) FORCE 70 $(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE 74 $(gen)/calls-oabi.S: $(syscall) $(systbl) FORCE 78 $(gen)/calls-eabi.S: $(syscall) $(systbl) FORCE
|
| /OK3568_Linux_fs/buildroot/package/libopenssl/ |
| H A D | 0007-Fixup-support-for-io_pgetevents_time64-syscall.patch | 4 Subject: [PATCH] Fixup support for io_pgetevents_time64 syscall 7 "Add support for io_pgetevents_time64 syscall" that didn't correctly 27 return syscall(__NR_io_submit, ctx, n, iocb); 44 + int ret = syscall(__NR_io_pgetevents_time64, ctx, min, max, events, 52 - return syscall(__NR_io_getevents, ctx, min, max, events, timeout); 60 - return syscall(__NR_io_pgetevents_time64, ctx, min, max, events, timeout, NULL); 66 + return syscall(__NR_io_getevents, ctx, min, max, events, timeout); 74 + * and then use the __NR_io_getevents syscall. 82 + return syscall(__NR_io_getevents, ctx, min, max, events, ts32); 84 + return syscall(__NR_io_getevents, ctx, min, max, events, NULL); [all …]
|
| H A D | 0006-Add-support-for-io_pgetevents_time64-syscall.patch | 4 Subject: [PATCH] Add support for io_pgetevents_time64 syscall 8 always use a 64-bit time_t. In the case of the io_getevents syscall the 9 syscall has been replaced with the io_pgetevents_time64 syscall instead. 12 syscall based on the avaliable syscalls and the time_t size. We will 13 only use the new 64-bit time_t syscall if the architecture is using a 40 return syscall(__NR_io_getevents, ctx, min, max, events, timeout); 48 + return syscall(__NR_io_pgetevents_time64, ctx, min, max, events, timeout, NULL); 54 +# error "We require either the io_getevents syscall or __NR_io_pgetevents_time64."
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/syscalls/ |
| H A D | Makefile | 7 syscall := $(srctree)/$(src)/syscall.tbl macro 34 $(uapi)/unistd_32.h: $(syscall) FORCE 38 $(uapi)/unistd_64.h: $(syscall) FORCE 41 $(kapi)/syscall_table.h: $(syscall) FORCE 45 $(kapi)/unistd_nr.h: $(syscall) FORCE
|
| /OK3568_Linux_fs/kernel/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_syscall_max) in handle_syscall() 46 EXECUTE_SYSCALL(syscall, regs)); in handle_syscall()
|