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

Side by Side Diff: fusl/arch/i386/syscall_arch.h

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 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
« no previous file with comments | « fusl/arch/i386/bits/termios.h ('k') | fusl/arch/mips/bits/io.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #define __SYSCALL_LL_E(x) \ 1 #define __SYSCALL_LL_E(x) \
2 ((union { long long ll; long l[2]; }){ .ll = x }).l[0], \ 2 ((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
3 ((union { long long ll; long l[2]; }){ .ll = x }).l[1] 3 ((union { long long ll; long l[2]; }){ .ll = x }).l[1]
4 #define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x)) 4 #define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
5 5
6 static inline long __syscall0(long n) 6 static inline long __syscall0(long n)
7 { 7 {
8 unsigned long __ret; 8 unsigned long __ret;
9 __asm__ __volatile__ (".hidden __vsyscall ; call __vsyscall" : "=a"(__re t) : "a"(n) : "memory"); 9 __asm__ __volatile__ (".hidden __vsyscall ; call __vsyscall" : "=a"(__re t) : "a"(n) : "memory");
10 return __ret; 10 return __ret;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a 5, long a6) 48 static inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a 5, long a6)
49 { 49 {
50 unsigned long __ret; 50 unsigned long __ret;
51 __asm__ __volatile__ ("push %6 ; .hidden __vsyscall6 ; call __vsyscall6 ; add $4,%%esp" : "=a"(__ret) : "a"(n), "d"(a1), "c"(a2), "D"(a3), "S"(a4), "g"( 0+(long[]){a5, a6}) : "memory"); 51 __asm__ __volatile__ ("push %6 ; .hidden __vsyscall6 ; call __vsyscall6 ; add $4,%%esp" : "=a"(__ret) : "a"(n), "d"(a1), "c"(a2), "D"(a3), "S"(a4), "g"( 0+(long[]){a5, a6}) : "memory");
52 return __ret; 52 return __ret;
53 } 53 }
54 54
55 #define VDSO_USEFUL 55 #define VDSO_USEFUL
56 #define VDSO_CGT_SYM "__vdso_clock_gettime" 56 #define VDSO_CGT_SYM "__vdso_clock_gettime"
57 #define VDSO_CGT_VER "LINUX_2.6" 57 #define VDSO_CGT_VER "LINUX_2.6"
58
59 #define SYSCALL_USE_SOCKETCALL
OLDNEW
« no previous file with comments | « fusl/arch/i386/bits/termios.h ('k') | fusl/arch/mips/bits/io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698