Home | History | Annotate | Download | only in qemu

Lines Matching defs:ARG

168 #define ARG(n)					\
193 if (!(s = lock_user_string(ARG(0))))
196 if (ARG(1) >= 12)
199 if (ARG(1) < 4)
205 gdb_do_syscall(arm_semi_cb, "open,%s,%x,1a4", ARG(0),
206 (int)ARG(2)+1, gdb_open_modeflags[ARG(1)]);
209 ret = set_swi_errno(ts, open(s, open_modeflags[ARG(1)], 0644));
211 unlock_user(s, ARG(0), 0);
215 gdb_do_syscall(arm_semi_cb, "close,%x", ARG(0));
218 return set_swi_errno(ts, close(ARG(0)));
249 len = ARG(2);
252 gdb_do_syscall(arm_semi_cb, "write,%x,%x,%x", ARG(0), ARG(1), len);
255 if (!(s = lock_user(VERIFY_READ, ARG(1), len, 1)))
258 ret = set_swi_errno(ts, write(ARG(0), s, len));
259 unlock_user(s, ARG(1), 0);
265 len = ARG(2);
268 gdb_do_syscall(arm_semi_cb, "read,%x,%x,%x", ARG(0), ARG(1), len);
271 if (!(s = lock_user(VERIFY_WRITE, ARG(1), len, 0)))
275 ret = set_swi_errno(ts, read(ARG(0), s, len));
277 unlock_user(s, ARG(1), len);
287 gdb_do_syscall(arm_semi_cb, "isatty,%x", ARG(0));
290 return isatty(ARG(0));
294 gdb_do_syscall(arm_semi_cb, "lseek,%x,%x,0", ARG(0), ARG(1));
297 ret = set_swi_errno(ts, lseek(ARG(0), ARG(1), SEEK_SET));
305 ARG(0), env->regs[13]-64);
309 ret = set_swi_errno(ts, fstat(ARG(0), &buf));
319 gdb_do_syscall(arm_semi_cb, "unlink,%s", ARG(0), (int)ARG(1)+1);
322 if (!(s = lock_user_string(ARG(0))))
326 unlock_user(s, ARG(0), 0);
332 ARG(0), (int)ARG(1)+1, ARG(2), (int)ARG(3)+1);
336 s = lock_user_string(ARG(0));
337 s2 = lock_user_string(ARG(2));
344 unlock_user(s2, ARG(2), 0);
346 unlock_user(s, ARG(0), 0);
355 gdb_do_syscall(arm_semi_cb, "system,%s", ARG(0), (int)ARG(1)+1);
358 if (!(s = lock_user_string(ARG(0))))
362 unlock_user(s, ARG(0), 0);
379 unsigned int arm_cmdline_len = ARG(1);
390 arm_cmdline_buffer = lock_user(VERIFY_WRITE, ARG(0), 1, 0);
392 unlock_user(arm_cmdline_buffer, ARG(0), 1);
401 lock_user(VERIFY_WRITE, ARG(0), host_cmdline_len, 0);
425 unlock_user(arm_cmdline_buffer, ARG(0), host_cmdline_len);
457 if (!(ptr = lock_user(VERIFY_WRITE, ARG(0), 16, 0)))
464 unlock_user(ptr, ARG(0), 16);
467 if (!(ptr = lock_user(VERIFY_WRITE, ARG(0), 16, 0)))
475 unlock_user(ptr, ARG(0), 16);