summaryrefslogtreecommitdiff
path: root/linux/or1k
Commit message (Collapse)AuthorAge
* Add TM flag to shmat and shmdt syscall entriesDmitry V. Levin2014-05-12
|
* fanotify_mark: fix number of args for 32bit archesMike Frysinger2013-09-11
| | | | | | | | | | | | | | | | | | | | | | | | The fanotify_mark func takes a 64bit mask, so 32bit arches have to split it up into two fields. When the syscall was added, it was listed as only having 5 fields total (since that's correct for 64bit systems). * linux/arm/syscallent.h: Set the number of fanotify_mark arguments to 6. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/metag/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent1.h: Likewise. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile]
* sync_file_range: fix number of syscall argumentsDmitry V. Levin2013-05-08
| | | | | | | | | | | | | | | | | | | | | * linux/avr32/syscallent.h: Set the number of sync_file_range arguments to 6. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Change sync_file_range to sync_file_range2, set the number of sync_file_range2 arguments to 6. * linux/tile/syscallent.h: Change sync_file_range to sync_file_range2, set the number of sync_file_range2 arguments to 4. * linux/tile/syscallent1.h: Change sync_file_range to sync_file_range2. update handler. * linux/xtensa/syscallent.h: Likewise.
* Add syscall entries for new linux syscallsDmitry V. Levin2013-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linux/dummy.h: Add printargs aliases for sys_finit_module, sys_kcmp and sys_sync_file_range2. * linux/alpha/syscallent.h: Add entries for process_vm_readv and process_vm_writev. * linux/bfin/syscallent.h: Likewise. * linux/arm/syscallent.h: Add entries for sync_file_range2, kcmp and finit_module. * linux/hppa/syscallent.h: Add entries for process_vm_readv, process_vm_writev, kcmp and finit_module. * linux/tile/syscallent.h: Likewise. * linux/tile/syscallent1.h: Likewise. * linux/ia64/syscallent.h: Add entry for finit_module. * linux/i386/syscallent.h: Add entries for kcmp and finit_module. * linux/m68k/syscallent.h: Likewise. * linux/metag/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/s390/syscallent.h: Add entries for s390_runtime_instr, kcmp and finit_module. * linux/s390x/syscallent.h: Likewise. * linux/sparc/syscallent.h: Add entries for kern_features, kcmp and finit_module.
* pread, pwrite: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | | The number of pread and pwrite arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit it equals to 5, and for aligned 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of pread and pwrite arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Change the number of pread and pwrite arguments to 5.
* ftruncate64, truncate64: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | The number of ftruncate64/truncate64 arguments depends on architecture and personality. For 64bit and ilp32 it equals to 2, for unaligned 32bit it equals to 3, and for aligned 32bit it equals to 4. * linux/or1k/syscallent.h: Change the number of ftruncate64 and truncate64 arguments to 3. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Change ftruncate64 and truncate64 handlers. * linux/sparc/syscallent.h: Change ftruncate64 handler, change the number of its arguments to 3. * linux/xtensa/syscallent.h: Change the number of ftruncate64 and truncate64 arguments to 4.
* readahead: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | The number of readahead arguments depends on architecture and personality. For 64bit and ilp32 it equals to 3, for unaligned 32bit it equals to 4, and for aligned 32bit it equals to 5. * linux/aarch64/syscallent1.h: Set number of readahead arguments to 3. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Set number of readahead arguments to 4. * linux/sh/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Set number of readahead arguments to 5.
* Fix syscall flagsDmitry V. Levin2013-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linux/aarch64/syscallent1.h: Fix syscall flags for send. * linux/alpha/syscallent.h: Fix syscall flags for fchdir, getcwd, oldumount, sigaltstack, umount, uselib, and utimes. * linux/arm/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, fsync, getdents, getdents64, ioctl, oldfstat, oldselect, open, pipe, poll, pread, pwrite, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/avr32/syscallent.h: Fix syscall flags for inotify_init and unshare. * linux/bfin/syscallent.h: Fix syscall flags for pread64 and pwrite64. * linux/hppa/syscallent.h: Fix syscall flags for fchdir, flistxattr, getcwd, pause, signal, umount2, uselib, utime, and vfork. * linux/ia64/syscallent.h: Fix syscall flags for creat, fchdir, lstat, umount, uselib, and utimes. Fix syscall handlers for fgetxattr, flistxattr, fremovexattr, and fsetxattr. * linux/m68k/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, ioctl, oldfstat, oldselect, open, pipe, poll, pread64, pwrite64, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/metag/syscallent.h: Fix syscall flags for fanotify_init, prlimit64, process_vm_readv, process_vm_writev, and quotactl. * linux/microblaze/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, ioctl, oldfstat, oldselect, open, perf_event_open, pipe, poll, pread64, pwrite64, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/mips/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, getdents64, getxattr, ioctl, lgetxattr, listxattr, llistxattr, lremovexattr, lsetxattr, oldfstat, open, pipe, pivot_root, poll, pread, pwrite, read, readahead, readv, removexattr, select, setxattr, socketcall, statfs, write, and writev. * linux/or1k/syscallent.h: Fix syscall flags for fchdir and quotactl. * linux/powerpc/syscallent.h: Fix syscall flags for fchdir. * linux/sh/syscallent.h: Fix syscall flags for getcwd. * linux/sparc/syscallent.h: Fix syscall flags for getresgid, getresuid, setresgid, setresgid32, and setresuid. * linux/xtensa/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fallocate, fchdir, fchmod, fchown, fcntl, fcntl64, fdatasync, flock, fsetxattr, fstatfs, fstatfs64, fsync, getdents, getdents64, ioctl, open, pipe, pivot_root, poll, pread64, pwrite64, read, readahead, readv, rt_sigreturn, select, setfsgid, setfsuid, setuid, swapoff, times, utime, write, and writev.
* Do not use off_t in sendfile decodingDmitry V. Levin2013-03-20
| | | | | | | | | | | | | | | | sendfile parser used to decode off_t* parameter as a pointer to host off_t type. With this change, it is decoded as a pointer to target long type. * io.c (print_off_t): New function. (sys_sendfile): Use it. * linux/aarch64/syscallent1.h: Use sys_sendfile64 for sendfile decoding. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/hppa/syscallent.h: Use sys_sendfile64 for sendfile64 decoding. * linux/metag/syscallent.h: Correct sendfile syscall name. * linux/or1k/syscallent.h: Likewise.
* metag,or1k: whitesace style fix. no code changesDenys Vlasenko2013-03-05
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Assorted fixes to syscallent.hDenys Vlasenko2013-03-05
| | | | | | | | | | | | | | or1k was missing TM on many memory-related syscalls sys_lookup_dcookie is 3-arg on 64-bit arches, and isn't TF sys_recvmsg is 3-arg on all arches sys_nfsservctl is 3-arg on all arches sys_timerfd_create is 2-arg on all arches sys_[f]truncate64 is 4-arg or 3-arg, never 5-arg truncate64 is TF sys_[l]lseek is TD fstat[64] is TD Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Clean up mmap decodingDenys Vlasenko2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous code merges too many similar, but different ways of decoding mmap. For example, sys_old_mmap is "params in memory" API... except SH[64], where it is "params in regs", i.e. what sys_mmap ("new mmap") function does on other arches! It's much simpler when every mmap handler has same API regardless of arch. Where API means whether params are in regs or in memory, and whether offset is in bytes, pages, or 4k blocks. Then we just insert correct function pointers into arch syscall tables. It turns out there are four common mmap APIs over all architectures which exist in Linux kernel, and one outlier for S390. A number of mmap decoders were plain wrong in arch tables. For example, BFIN has no old_mmap. It returns ENOSYS. I checked kernel sources for all arches nad fixed the tables. There was dead code for x86_64 for old_mmap: x86_64 has no old_mmap. * mem.c: Refactor mmap functions so that we have five mmap syscall handlers, each with the fixed API (not varying by arch). * pathtrace.c (pathtrace_match): Adjust sys_func == mmap_func checks. * linux/syscall.h: Declare new mmap syscall handler functions. * linux/arm/syscallent.h: mmap2 is sys_mmap_pgoff. * linux/avr32/syscallent.h: mmap is sys_mmap_pgoff. * linux/bfin/syscallent.h: old_mmap is ENOSYS, mmap2 is sys_mmap_pgoff. * linux/hppa/syscallent.h: mmap2 is sys_mmap_4koff. * linux/i386/syscallent.h: mmap2 is sys_mmap_pgoff. * linux/ia64/syscallent.h: mmap2 is sys_mmap_pgoff. * linux/m68k/syscallent.h: mmap2 is sys_mmap_pgoff. * linux/microblaze/syscallent.h: old_mmap is sys_mmap, mmap2 is sys_mmap_pgoff. * linux/mips/syscallent.h: mmap is sys_mmap_4kgoff. * linux/or1k/syscallent.h: mmap2 is sys_mmap_pgoff. * linux/powerpc/syscallent.h: mmap2 is sys_mmap_4kgoff. * linux/s390/syscallent.h: mmap2 is sys_old_mmap_pgoff. * linux/s390x/syscallent.h: mmap is sys_old_mmap and thus has 1 arg. * linux/sh/syscallent.h: old_mmap2 is sys_mmap, mmap2 is sys_mmap_4koff. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent1.h: mmap is TD|TM. * linux/tile/syscallent1.h: mmap2 is sys_mmap_4koff. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Whitespace fix, no code changesDenys Vlasenko2013-02-14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add support for the OpenRISC 1000 platformChristian Svensson2013-02-14
* configure.ac: Added or1k architecture.. * defs.h: Added or1k to use register reading system. * linux/or1k/ioctlent.h.in: Use i386 ioctls. * linux/or1k/syscallent.h: New file. * process.c: Added or1k register defs to struct_user_offsets[]. * syscall.c: Added or1k_io iovec for or1k GETREGSET,   regset structure for or1k.   (printcall): Added handling for or1k.   (get_regs): Likewise.   (get_scno): Likewise.   (get_syscall_args): Likewise.   (get_syscall_result): Likewise. (get_error): Likewise. * util.c (change_syscall): Added dummy handling for or1k. * system.c (sys_or1k_atomic): New function (or1k specific syscall). Signed-off-by: Christian Svensson <blue@cmd.nu> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>