authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 20:07:18+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 20:07:18+07:00
logf0182010099a437146c0c5ae7c7c7d80bd2fbab4
treece1e7d95dc91ce91a9bee69c32545b764cb5de07
parent2e7a4758b30323939fad5b3a5a5421ab93f60fad

Predict error-less path on syscalls


1 files changed, 15 insertions(+), 15 deletions(-)

lib/std/os/linux/sparc64.zig+15-15
...@@ -4,7 +4,7 @@ pub fn syscall_pipe(fd: *[2]i32) usize {...@@ -4,7 +4,7 @@ pub fn syscall_pipe(fd: *[2]i32) usize {
4 return asm volatile (4 return asm volatile (
5 \\ mov %%o0, %%o25 \\ mov %%o0, %%o2
6 \\ t 0x6d6 \\ t 0x6d
7 \\ bcc %%xcc, 1f7 \\ bcc,pt %%xcc, 1f
8 \\ nop8 \\ nop
9 \\ ba 2f9 \\ ba 2f
10 \\ neg %%o010 \\ neg %%o0
...@@ -21,8 +21,8 @@ pub fn syscall_pipe(fd: *[2]i32) usize {...@@ -21,8 +21,8 @@ pub fn syscall_pipe(fd: *[2]i32) usize {
2121
22pub fn syscall0(number: SYS) usize {22pub fn syscall0(number: SYS) usize {
23 return asm volatile (23 return asm volatile (
24 \\ t 0x6d24 \\ t 0x6d
25 \\ bcc %%xcc, 1f25 \\ bcc,pt %%xcc, 1f
26 \\ nop26 \\ nop
27 \\ neg %%o027 \\ neg %%o0
28 \\ 1:28 \\ 1:
...@@ -34,8 +34,8 @@ pub fn syscall0(number: SYS) usize {...@@ -34,8 +34,8 @@ pub fn syscall0(number: SYS) usize {
3434
35pub fn syscall1(number: SYS, arg1: usize) usize {35pub fn syscall1(number: SYS, arg1: usize) usize {
36 return asm volatile (36 return asm volatile (
37 \\ t 0x6d37 \\ t 0x6d
38 \\ bcc %%xcc, 1f38 \\ bcc,pt %%xcc, 1f
39 \\ nop39 \\ nop
40 \\ neg %%o040 \\ neg %%o0
41 \\ 1:41 \\ 1:
...@@ -48,8 +48,8 @@ pub fn syscall1(number: SYS, arg1: usize) usize {...@@ -48,8 +48,8 @@ pub fn syscall1(number: SYS, arg1: usize) usize {
4848
49pub fn syscall2(number: SYS, arg1: usize, arg2: usize) usize {49pub fn syscall2(number: SYS, arg1: usize, arg2: usize) usize {
50 return asm volatile (50 return asm volatile (
51 \\ t 0x6d51 \\ t 0x6d
52 \\ bcc %%xcc, 1f52 \\ bcc,pt %%xcc, 1f
53 \\ nop53 \\ nop
54 \\ neg %%o054 \\ neg %%o0
55 \\ 1:55 \\ 1:
...@@ -63,8 +63,8 @@ pub fn syscall2(number: SYS, arg1: usize, arg2: usize) usize {...@@ -63,8 +63,8 @@ pub fn syscall2(number: SYS, arg1: usize, arg2: usize) usize {
6363
64pub fn syscall3(number: SYS, arg1: usize, arg2: usize, arg3: usize) usize {64pub fn syscall3(number: SYS, arg1: usize, arg2: usize, arg3: usize) usize {
65 return asm volatile (65 return asm volatile (
66 \\ t 0x6d66 \\ t 0x6d
67 \\ bcc %%xcc, 1f67 \\ bcc,pt %%xcc, 1f
68 \\ nop68 \\ nop
69 \\ neg %%o069 \\ neg %%o0
70 \\ 1:70 \\ 1:
...@@ -79,8 +79,8 @@ pub fn syscall3(number: SYS, arg1: usize, arg2: usize, arg3: usize) usize {...@@ -79,8 +79,8 @@ pub fn syscall3(number: SYS, arg1: usize, arg2: usize, arg3: usize) usize {
7979
80pub fn syscall4(number: SYS, arg1: usize, arg2: usize, arg3: usize, arg4: usize) usize {80pub fn syscall4(number: SYS, arg1: usize, arg2: usize, arg3: usize, arg4: usize) usize {
81 return asm volatile (81 return asm volatile (
82 \\ t 0x6d82 \\ t 0x6d
83 \\ bcc %%xcc, 1f83 \\ bcc,pt %%xcc, 1f
84 \\ nop84 \\ nop
85 \\ neg %%o085 \\ neg %%o0
86 \\ 1:86 \\ 1:
...@@ -96,8 +96,8 @@ pub fn syscall4(number: SYS, arg1: usize, arg2: usize, arg3: usize, arg4: usize)...@@ -96,8 +96,8 @@ pub fn syscall4(number: SYS, arg1: usize, arg2: usize, arg3: usize, arg4: usize)
9696
97pub fn syscall5(number: SYS, arg1: usize, arg2: usize, arg3: usize, arg4: usize, arg5: usize) usize {97pub fn syscall5(number: SYS, arg1: usize, arg2: usize, arg3: usize, arg4: usize, arg5: usize) usize {
98 return asm volatile (98 return asm volatile (
99 \\ t 0x6d99 \\ t 0x6d
100 \\ bcc %%xcc, 1f100 \\ bcc,pt %%xcc, 1f
101 \\ nop101 \\ nop
102 \\ neg %%o0102 \\ neg %%o0
103 \\ 1:103 \\ 1:
...@@ -122,8 +122,8 @@ pub fn syscall6(...@@ -122,8 +122,8 @@ pub fn syscall6(
122 arg6: usize,122 arg6: usize,
123) usize {123) usize {
124 return asm volatile (124 return asm volatile (
125 \\ t 0x6d125 \\ t 0x6d
126 \\ bcc %%xcc, 1f126 \\ bcc,pt %%xcc, 1f
127 \\ nop127 \\ nop
128 \\ neg %%o0128 \\ neg %%o0
129 \\ 1:129 \\ 1: