annotate src/syscall.cbc @ 92:bc5bcfd2f6d6

rename CbCFile to CbCSysFile
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sat, 19 Oct 2019 16:44:24 +0900
parents b5ddf6fb0a6d
children 94ee7046d190
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include "types.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include "defs.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #include "param.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #include "memlayout.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 #include "mmu.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 #include "proc.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 #include "arm.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 #include "syscall.h"
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
52
214d21c891c7 rename to cbc
kono
parents: 34
diff changeset
10 #define __ncode __code
214d21c891c7 rename to cbc
kono
parents: 34
diff changeset
11 #
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 // User code makes a system call with INT T_SYSCALL. System call number
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 // in r0. Arguments on the stack, from the user call to the C library
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 // system call function. The saved user sp points to the first argument.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 // Fetch the int at addr from the current process.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 int fetchint(uint addr, int *ip)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 if(addr >= proc->sz || addr+4 > proc->sz) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 return -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 *ip = *(int*)(addr);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 return 0;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 // Fetch the nul-terminated string at addr from the current process.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 // Doesn't actually copy the string - just sets *pp to point at it.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 // Returns length of string, not including nul.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 int fetchstr(uint addr, char **pp)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 char *s, *ep;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 if(addr >= proc->sz) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 return -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 *pp = (char*)addr;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 ep = (char*)proc->sz;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 for(s = *pp; s < ep; s++) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 if(*s == 0) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 return s - *pp;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 return -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 // Fetch the nth (starting from 0) 32-bit system call argument.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 // In our ABI, r0 contains system call index, r1-r4 contain parameters.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 // now we support system calls with at most 4 parameters.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 int argint(int n, int *ip)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 if (n > 3) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 panic ("too many system call parameters\n");
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 *ip = *(&proc->tf->r1 + n);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 return 0;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
63
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 // Fetch the nth word-sized system call argument as a pointer
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 // to a block of memory of size n bytes. Check that the pointer
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 // lies within the process address space.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 int argptr(int n, char **pp, int size)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 int i;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
70
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 if(argint(n, &i) < 0) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 return -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
74
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 if((uint)i >= proc->sz || (uint)i+size > proc->sz) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 return -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
78
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 *pp = (char*)i;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 return 0;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
82
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 // Fetch the nth word-sized system call argument as a string pointer.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 // Check that the pointer is valid and the string is nul-terminated.
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 // (There is no shared writable memory, so the string can't change
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 // between this check and being used by the kernel.)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 int argstr(int n, char **pp)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 int addr;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
90
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 if(argint(n, &addr) < 0) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 return -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
94
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 return fetchstr(addr, pp);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
97
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 extern int sys_chdir(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 extern int sys_close(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 extern int sys_dup(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 extern int sys_exec(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 extern int sys_exit(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 extern int sys_fork(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 extern int sys_fstat(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 extern int sys_getpid(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 extern int sys_kill(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 extern int sys_link(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 extern int sys_mkdir(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 extern int sys_mknod(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 extern int sys_open(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 extern int sys_pipe(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 extern int sys_read(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 extern int sys_sbrk(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 extern int sys_sleep(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 extern int sys_unlink(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 extern int sys_wait(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 extern int sys_write(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 extern int sys_uptime(void);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
119
29
mir3636
parents: 24
diff changeset
120 extern __code cbc_read(__code(*)(int));
mir3636
parents: 24
diff changeset
121
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 static int (*syscalls[])(void) = {
22
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
123 [SYS_fork] =sys_fork,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
124 [SYS_exit] =sys_exit,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
125 [SYS_wait] =sys_wait,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
126 [SYS_pipe] =sys_pipe,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
127 [SYS_read] =sys_read,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
128 [SYS_kill] =sys_kill,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
129 [SYS_exec] =sys_exec,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
130 [SYS_fstat] =sys_fstat,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
131 [SYS_chdir] =sys_chdir,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
132 [SYS_dup] =sys_dup,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
133 [SYS_getpid] =sys_getpid,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
134 [SYS_sbrk] =sys_sbrk,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
135 [SYS_sleep] =sys_sleep,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
136 [SYS_uptime] =sys_uptime,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
137 [SYS_open] =sys_open,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
138 [SYS_write] =sys_write,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
139 [SYS_mknod] =sys_mknod,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
140 [SYS_unlink] =sys_unlink,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
141 [SYS_link] =sys_link,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
142 [SYS_mkdir] =sys_mkdir,
397e74cbf14e fix warnings
mir3636
parents: 0
diff changeset
143 [SYS_close] =sys_close,
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 };
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
145
91
b5ddf6fb0a6d use CbCFile instead of File struct Interface
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
146 static enum Code cbccodes[] = {
92
bc5bcfd2f6d6 rename CbCFile to CbCSysFile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
147 [SYS_cbc_read] = C_start_code,
24
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
148 };
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
149
52
214d21c891c7 rename to cbc
kono
parents: 34
diff changeset
150 __ncode cbc_trap_return(){
31
mir3636
parents: 30
diff changeset
151 return;
30
mir3636
parents: 29
diff changeset
152 }
mir3636
parents: 29
diff changeset
153
52
214d21c891c7 rename to cbc
kono
parents: 34
diff changeset
154 __ncode cbc_ret(int ret){
32
96af12a50fdb fix cbc_read
mir3636
parents: 31
diff changeset
155 int num = proc->cbc_arg.cbc_console_arg.num;
96af12a50fdb fix cbc_read
mir3636
parents: 31
diff changeset
156 if (num != SYS_exec) {
96af12a50fdb fix cbc_read
mir3636
parents: 31
diff changeset
157 proc->tf->r0 = ret;
96af12a50fdb fix cbc_read
mir3636
parents: 31
diff changeset
158 }
24
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
159 goto cbc_trap_return();
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
160 }
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
161
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 void syscall(void)
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 int num;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 int ret;
91
b5ddf6fb0a6d use CbCFile instead of File struct Interface
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
166 struct Context* cbc_context;
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
167
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 num = proc->tf->r0;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
169
31
mir3636
parents: 30
diff changeset
170 if (num == 5)
91
b5ddf6fb0a6d use CbCFile instead of File struct Interface
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
171 num = 22;
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
172 //cprintf ("syscall(%d) from %s(%d)\n", num, proc->name, proc->pid);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
173
31
mir3636
parents: 30
diff changeset
174 if((num >= NELEM(syscalls)) && (num <= NELEM(cbccodes)) && cbccodes[num]) {
32
96af12a50fdb fix cbc_read
mir3636
parents: 31
diff changeset
175 proc->cbc_arg.cbc_console_arg.num = num;
91
b5ddf6fb0a6d use CbCFile instead of File struct Interface
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
176 goto meta(cbc_context, cbccodes[num]);
24
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
177 }
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
178
36bd61f5c847 rewrite sys_read cbc
mir3636
parents: 22
diff changeset
179
34
mir3636
parents: 32
diff changeset
180 if((num > 0) && (num < NELEM(syscalls)) && syscalls[num]) {
0
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
181 ret = syscalls[num]();
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
182
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 // in ARM, parameters to main (argc, argv) are passed in r0 and r1
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 // do not set the return value if it is SYS_exec (the user program
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 // anyway does not expect us to return anything).
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 if (num != SYS_exec) {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 proc->tf->r0 = ret;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 } else {
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 cprintf("%d %s: unknown sys call %d\n", proc->pid, proc->name, num);
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 proc->tf->r0 = -1;
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 }
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 }