Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: lss/linux_syscall_support.h

Issue 1096093003: Add support for sys_mmap for MIPS64 N64 (Closed) Base URL: http://linux-syscall-support.googlecode.com/svn/trunk/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2005-2011, Google Inc. 1 /* Copyright (c) 2005-2011, Google Inc.
2 * All rights reserved. 2 * All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 3862 matching lines...) Expand 10 before | Expand all | Expand 10 after
3873 } 3873 }
3874 #elif defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI64 3874 #elif defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI64
3875 LSS_INLINE _syscall4(ssize_t, pread64, int, f, 3875 LSS_INLINE _syscall4(ssize_t, pread64, int, f,
3876 void *, b, size_t, c, 3876 void *, b, size_t, c,
3877 loff_t, o) 3877 loff_t, o)
3878 LSS_INLINE _syscall4(ssize_t, pwrite64, int, f, 3878 LSS_INLINE _syscall4(ssize_t, pwrite64, int, f,
3879 const void *, b, size_t, c, 3879 const void *, b, size_t, c,
3880 loff_t, o) 3880 loff_t, o)
3881 LSS_INLINE _syscall3(int, readahead, int, f, 3881 LSS_INLINE _syscall3(int, readahead, int, f,
3882 loff_t, o, unsigned, c) 3882 loff_t, o, unsigned, c)
3883 LSS_INLINE _syscall6(void *, mmap, void *, addr, size_t, length, int, prot,
3884 int, flags, int, fd, int64_t, offset)
3883 #else 3885 #else
3884 #define __NR__pread64 __NR_pread64 3886 #define __NR__pread64 __NR_pread64
3885 #define __NR__pwrite64 __NR_pwrite64 3887 #define __NR__pwrite64 __NR_pwrite64
3886 #define __NR__readahead __NR_readahead 3888 #define __NR__readahead __NR_readahead
3887 #if defined(__ARM_EABI__) || defined(__mips__) 3889 #if defined(__ARM_EABI__) || defined(__mips__)
3888 /* On ARM and MIPS, a 64-bit parameter has to be in an even-odd register 3890 /* On ARM and MIPS, a 64-bit parameter has to be in an even-odd register
3889 * pair. Hence these calls ignore their fourth argument (r3) so that their 3891 * pair. Hence these calls ignore their fourth argument (r3) so that their
3890 * fifth and sixth make such a pair (r4,r5). 3892 * fifth and sixth make such a pair (r4,r5).
3891 */ 3893 */
3892 #define LSS_LLARG_PAD 0, 3894 #define LSS_LLARG_PAD 0,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
4019 # pragma pop_macro("fstat64") 4021 # pragma pop_macro("fstat64")
4020 # pragma pop_macro("lstat64") 4022 # pragma pop_macro("lstat64")
4021 #endif 4023 #endif
4022 4024
4023 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) 4025 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS)
4024 } 4026 }
4025 #endif 4027 #endif
4026 4028
4027 #endif 4029 #endif
4028 #endif 4030 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698