Release 4.18 arch/powerpc/kernel/sys_ppc32.c
/*
* sys_ppc32.c: Conversion between 32bit and 64bit native syscalls.
*
* Copyright (C) 2001 IBM
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
*
* These routines maintain argument size conversion between 32bit and 64bit
* environment.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/signal.h>
#include <linux/resource.h>
#include <linux/times.h>
#include <linux/smp.h>
#include <linux/sem.h>
#include <linux/msg.h>
#include <linux/shm.h>
#include <linux/poll.h>
#include <linux/personality.h>
#include <linux/stat.h>
#include <linux/mman.h>
#include <linux/in.h>
#include <linux/syscalls.h>
#include <linux/unistd.h>
#include <linux/sysctl.h>
#include <linux/binfmts.h>
#include <linux/security.h>
#include <linux/compat.h>
#include <linux/ptrace.h>
#include <linux/elf.h>
#include <linux/ipc.h>
#include <linux/slab.h>
#include <asm/ptrace.h>
#include <asm/types.h>
#include <linux/uaccess.h>
#include <asm/unistd.h>
#include <asm/time.h>
#include <asm/mmu_context.h>
#include <asm/ppc-pci.h>
#include <asm/syscalls.h>
#include <asm/switch_to.h>
unsigned long compat_sys_mmap2(unsigned long addr, size_t len,
unsigned long prot, unsigned long flags,
unsigned long fd, unsigned long pgoff)
{
/* This should remain 12 even if PAGE_SIZE changes */
return sys_mmap(addr, len, prot, flags, fd, pgoff << 12);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 26 | 54.17% | 2 | 66.67% |
Al Viro | 22 | 45.83% | 1 | 33.33% |
Total | 48 | 100.00% | 3 | 100.00% |
/*
* long long munging:
* The 32 bit ABI passes long longs in an odd even register pair.
*/
compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count,
u32 reg6, u32 poshi, u32 poslo)
{
return ksys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 44 | 93.62% | 1 | 25.00% |
Dominik Brodowski | 1 | 2.13% | 1 | 25.00% |
Linus Torvalds | 1 | 2.13% | 1 | 25.00% |
Stephen Rothwell | 1 | 2.13% | 1 | 25.00% |
Total | 47 | 100.00% | 4 | 100.00% |
compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count,
u32 reg6, u32 poshi, u32 poslo)
{
return ksys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 44 | 91.67% | 2 | 33.33% |
Stephen Rothwell | 1 | 2.08% | 1 | 16.67% |
David Howells | 1 | 2.08% | 1 | 16.67% |
Dominik Brodowski | 1 | 2.08% | 1 | 16.67% |
Linus Torvalds | 1 | 2.08% | 1 | 16.67% |
Total | 48 | 100.00% | 6 | 100.00% |
compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offhi, u32 offlo, u32 count)
{
return ksys_readahead(fd, ((loff_t)offhi << 32) | offlo, count);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 37 | 94.87% | 2 | 50.00% |
Dominik Brodowski | 1 | 2.56% | 1 | 25.00% |
Stephen Rothwell | 1 | 2.56% | 1 | 25.00% |
Total | 39 | 100.00% | 4 | 100.00% |
asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4,
unsigned long high, unsigned long low)
{
return ksys_truncate(path, (high << 32) | low);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 34 | 91.89% | 2 | 40.00% |
Stephen Rothwell | 1 | 2.70% | 1 | 20.00% |
Linus Torvalds | 1 | 2.70% | 1 | 20.00% |
Dominik Brodowski | 1 | 2.70% | 1 | 20.00% |
Total | 37 | 100.00% | 5 | 100.00% |
asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
u32 lenhi, u32 lenlo)
{
return ksys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
((loff_t)lenhi << 32) | lenlo);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Amit Arora | 53 | 98.15% | 1 | 50.00% |
Dominik Brodowski | 1 | 1.85% | 1 | 50.00% |
Total | 54 | 100.00% | 2 | 100.00% |
asmlinkage int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long high,
unsigned long low)
{
return ksys_ftruncate(fd, (high << 32) | low);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 33 | 94.29% | 2 | 50.00% |
Stephen Rothwell | 1 | 2.86% | 1 | 25.00% |
Dominik Brodowski | 1 | 2.86% | 1 | 25.00% |
Total | 35 | 100.00% | 4 | 100.00% |
long ppc32_fadvise64(int fd, u32 unused, u32 offset_high, u32 offset_low,
size_t len, int advice)
{
return ksys_fadvise64_64(fd, (u64)offset_high << 32 | offset_low, len,
advice);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 41 | 97.62% | 1 | 50.00% |
Dominik Brodowski | 1 | 2.38% | 1 | 50.00% |
Total | 42 | 100.00% | 2 | 100.00% |
asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags,
unsigned offset_hi, unsigned offset_lo,
unsigned nbytes_hi, unsigned nbytes_lo)
{
loff_t offset = ((loff_t)offset_hi << 32) | offset_lo;
loff_t nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo;
return ksys_sync_file_range(fd, offset, nbytes, flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Woodhouse | 64 | 98.46% | 1 | 50.00% |
Dominik Brodowski | 1 | 1.54% | 1 | 50.00% |
Total | 65 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Anton Blanchard | 335 | 63.81% | 9 | 27.27% |
David Woodhouse | 64 | 12.19% | 1 | 3.03% |
Amit Arora | 53 | 10.10% | 1 | 3.03% |
Al Viro | 22 | 4.19% | 1 | 3.03% |
Andrew Morton | 12 | 2.29% | 2 | 6.06% |
Dominik Brodowski | 8 | 1.52% | 7 | 21.21% |
Stephen Rothwell | 6 | 1.14% | 2 | 6.06% |
Linus Torvalds | 4 | 0.76% | 2 | 6.06% |
David Howells | 4 | 0.76% | 2 | 6.06% |
Greg Kroah-Hartman | 3 | 0.57% | 1 | 3.03% |
Arnd Bergmann | 3 | 0.57% | 1 | 3.03% |
Tejun Heo | 3 | 0.57% | 1 | 3.03% |
Daniel Jacobowitz | 3 | 0.57% | 1 | 3.03% |
Adrian Bunk | 3 | 0.57% | 1 | 3.03% |
Benjamin Herrenschmidt | 2 | 0.38% | 1 | 3.03% |
Total | 525 | 100.00% | 33 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.