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

Side by Side Diff: lss/linux_syscall_support.h

Issue 10910222: [MIPS] Ignoring 4th parameter in a3 for pread64 system calls on MIPS. (Closed) Base URL: http://linux-syscall-support.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 3 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 3453 matching lines...) Expand 10 before | Expand all | Expand 10 after
3464 loff_t, o) 3464 loff_t, o)
3465 LSS_INLINE _syscall4(ssize_t, pwrite64, int, f, 3465 LSS_INLINE _syscall4(ssize_t, pwrite64, int, f,
3466 const void *, b, size_t, c, 3466 const void *, b, size_t, c,
3467 loff_t, o) 3467 loff_t, o)
3468 LSS_INLINE _syscall3(int, readahead, int, f, 3468 LSS_INLINE _syscall3(int, readahead, int, f,
3469 loff_t, o, unsigned, c) 3469 loff_t, o, unsigned, c)
3470 #else 3470 #else
3471 #define __NR__pread64 __NR_pread64 3471 #define __NR__pread64 __NR_pread64
3472 #define __NR__pwrite64 __NR_pwrite64 3472 #define __NR__pwrite64 __NR_pwrite64
3473 #define __NR__readahead __NR_readahead 3473 #define __NR__readahead __NR_readahead
3474 #if defined(__ARM_EABI__) 3474 #if defined(__ARM_EABI__) || defined(__mips__)
3475 /* On ARM, a 64-bit parameter has to be in an even-odd register pair. 3475 /* On ARM and MIPS, a 64-bit parameter has to be in an even-odd register
3476 * Hence these calls ignore their fourth argument (r3) so that their 3476 * pair. Hence these calls ignore their fourth argument (r3) so that their
3477 * fifth and sixth make such a pair (r4,r5). 3477 * fifth and sixth make such a pair (r4,r5).
3478 */ 3478 */
3479 #define LSS_LLARG_PAD 0, 3479 #define LSS_LLARG_PAD 0,
3480 LSS_INLINE _syscall6(ssize_t, _pread64, int, f, 3480 LSS_INLINE _syscall6(ssize_t, _pread64, int, f,
3481 void *, b, size_t, c, 3481 void *, b, size_t, c,
3482 unsigned, skip, unsigned, o1, unsigned, o2) 3482 unsigned, skip, unsigned, o1, unsigned, o2)
3483 LSS_INLINE _syscall6(ssize_t, _pwrite64, int, f, 3483 LSS_INLINE _syscall6(ssize_t, _pwrite64, int, f,
3484 const void *, b, size_t, c, 3484 const void *, b, size_t, c,
3485 unsigned, skip, unsigned, o1, unsigned, o2) 3485 unsigned, skip, unsigned, o1, unsigned, o2)
3486 LSS_INLINE _syscall5(int, _readahead, int, f, 3486 LSS_INLINE _syscall5(int, _readahead, int, f,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3528 # pragma pop_macro("fstat64") 3528 # pragma pop_macro("fstat64")
3529 # pragma pop_macro("lstat64") 3529 # pragma pop_macro("lstat64")
3530 #endif 3530 #endif
3531 3531
3532 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) 3532 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS)
3533 } 3533 }
3534 #endif 3534 #endif
3535 3535
3536 #endif 3536 #endif
3537 #endif 3537 #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