Lines Matching defs:processor

215 	     cpu *processor,
218 int status = (int)cpu_registers(processor)->gpr[arg0];
222 cpu_halt(processor, cia, was_exited, status);
230 cpu *processor,
234 int d = (int)cpu_registers(processor)->gpr[arg0];
235 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
236 int nbytes = cpu_registers(processor)->gpr[arg0+2];
246 emul_read_buffer(scratch_buffer, buf, nbytes, processor, cia);
253 emul_write_status(processor, status, errno);
255 emul_write_buffer(scratch_buffer, buf, status, processor, cia);
265 cpu *processor,
269 int d = (int)cpu_registers(processor)->gpr[arg0];
270 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
271 int nbytes = cpu_registers(processor)->gpr[arg0+2];
282 processor, cia);
288 emul_write_status(processor, status, errno);
299 cpu *processor,
302 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
304 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
305 int flags = (int)cpu_registers(processor)->gpr[arg0+1];
306 int mode = (int)cpu_registers(processor)->gpr[arg0+2];
313 emul_write_status(processor, status, errno);
321 cpu *processor,
324 int d = (int)cpu_registers(processor)->gpr[arg0];
344 emul_write_status(processor, status, errno);
352 cpu *processor,
356 unsigned_word new_break = cpu_registers(processor)->gpr[arg0];
360 printf_filtered ("0x%lx", (long)cpu_registers(processor)->gpr[arg0]);
363 processor,
368 emul_write_status(processor, 0, status);
378 cpu *processor,
381 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
383 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
384 int mode = (int)cpu_registers(processor)->gpr[arg0+1];
391 emul_write_status(processor, status, errno);
402 cpu *processor,
406 emul_write_status(processor, (int)status, errno);
417 cpu *processor,
421 emul_write_status(processor, (int)status, errno);
432 cpu *processor,
437 emul_write2_status(processor, pid, ppid, errno);
448 cpu *processor,
453 emul_write2_status(processor, (int)uid, (int)euid, errno);
464 cpu *processor,
468 emul_write_status(processor, (int)status, errno);
479 cpu *processor,
483 emul_write_status(processor, (int)status, errno);
495 cpu *processor,
498 pid_t pid = cpu_registers(processor)->gpr[arg0];
499 int sig = cpu_registers(processor)->gpr[arg0+1];
507 cpu_halt(processor, cia, was_signalled, sig);
519 cpu *processor,
522 int oldd = cpu_registers(processor)->gpr[arg0];
529 emul_write_status(processor, status, err);
540 cpu *processor,
543 int oldd = cpu_registers(processor)->gpr[arg0];
544 int newd = cpu_registers(processor)->gpr[arg0+1];
551 emul_write_status(processor, status, err);
562 cpu *processor,
565 int fildes = (int)cpu_registers(processor)->gpr[arg0];
566 off_t offset = (off_t)cpu_registers(processor)->gpr[arg0+1];
567 int whence = (int)cpu_registers(processor)->gpr[arg0+2];
576 emul_write_status(processor, (int)status, errno);
588 cpu *processor,
593 emul_write2_status(processor, (int)gid, (int)egid, errno);
604 cpu *processor,
608 emul_write_status(processor, (int)status, errno);
619 cpu *processor,
623 emul_write_status(processor, (int)status, errno);
634 cpu *processor,
637 mode_t mask = (mode_t)cpu_registers(processor)->gpr[arg0];
643 emul_write_status(processor, status, errno);
654 cpu *processor,
657 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
659 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
666 emul_write_status(processor, status, errno);
677 cpu *processor,
680 unsigned_word path1_addr = cpu_registers(processor)->gpr[arg0];
682 char *path1 = emul_read_string(path1_buf, path1_addr, PATH_MAX, processor, cia);
683 unsigned_word path2_addr = cpu_registers(processor)->gpr[arg0+1];
685 char *path2 = emul_read_string(path2_buf, path2_addr, PATH_MAX, processor, cia);
692 emul_write_status(processor, status, errno);
703 cpu *processor,
706 unsigned_word path1_addr = cpu_registers(processor)->gpr[arg0];
708 char *path1 = emul_read_string(path1_buf, path1_addr, PATH_MAX, processor, cia);
709 unsigned_word path2_addr = cpu_registers(processor)->gpr[arg0+1];
711 char *path2 = emul_read_string(path2_buf, path2_addr, PATH_MAX, processor, cia);
718 emul_write_status(processor, status, errno);
729 cpu *processor,
732 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
734 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
741 emul_write_status(processor, status, errno);
752 cpu *processor,
755 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
757 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
758 int mode = (int)cpu_registers(processor)->gpr[arg0+1];
765 emul_write_status(processor, status, errno);
776 cpu *processor,
779 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
781 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
788 emul_write_status(processor, status, errno);
799 cpu *processor,
802 unsigned_word tp = cpu_registers(processor)->gpr[arg0];
809 emul_write_status(processor, (int)status, errno);
812 emul_write_buffer(&status, tp, sizeof(status), processor, cia);
823 cpu *processor,
826 unsigned_word tv = cpu_registers(processor)->gpr[arg0];
827 unsigned_word tz = cpu_registers(processor)->gpr[arg0+1];
846 emul_write_buffer((void *) &target_timeval, tv, sizeof(target_timeval), processor, cia);
852 emul_write_buffer((void *) &target_timezone, tv, sizeof(target_timezone), processor, cia);
856 emul_write_status(processor, (int)status, errno);
868 cpu *processor,
871 signed_word who = (signed_word)cpu_registers(processor)->gpr[arg0];
872 unsigned_word usage = cpu_registers(processor)->gpr[arg0+1];
940 emul_write_buffer((void *) &target_rusage, usage, sizeof(target_rusage), processor, cia);
943 emul_write_status(processor, status, errno);
952 cpu *processor,
957 (long)cpu_registers(processor)->gpr[arg0],
958 (long)cpu_registers(processor)->gpr[arg0+1],
959 (long)cpu_registers(processor)->gpr[arg0+2],
960 (long)cpu_registers(processor)->gpr[arg0+3],
961 (long)cpu_registers(processor)->gpr[arg0+4],
962 (long)cpu_registers(processor)->gpr[arg0+5]);
964 emul_write_status(processor, 0, errno);
1096 cpu *processor,
1151 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
1162 cpu *processor,
1165 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
1166 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
1169 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
1177 convert_to_solaris_stat (stat_pkt, &buf, processor, cia);
1179 emul_write_status(processor, status, errno);
1190 cpu *processor,
1193 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
1194 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
1197 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
1205 convert_to_solaris_stat (stat_pkt, &buf, processor, cia);
1207 emul_write_status(processor, status, errno);
1218 cpu *processor,
1221 int fildes = (int)cpu_registers(processor)->gpr[arg0];
1222 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
1233 convert_to_solaris_stat (stat_pkt, &buf, processor, cia);
1235 emul_write_status(processor, status, errno);
1277 cpu *processor,
1334 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
1356 cpu *processor,
1439 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
1450 cpu *processor,
1453 int fildes = cpu_registers(processor)->gpr[arg0];
1454 unsigned request = cpu_registers(processor)->gpr[arg0+1];
1455 unsigned_word argp_addr = cpu_registers(processor)->gpr[arg0+2];
1492 convert_to_solaris_termio (argp_addr, &host_termio, processor, cia);
1507 convert_to_solaris_termios (argp_addr, &host_termio, processor, cia);
1514 emul_write_status(processor, status, errno);
1971 emul_solaris_system_call(cpu *processor,
1977 cpu_registers(processor)->gpr[0],
1979 processor,
2049 cpu *processor,
2089 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
2100 cpu *processor,
2103 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
2104 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
2107 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
2115 convert_to_linux_stat (stat_pkt, &buf, processor, cia);
2117 emul_write_status(processor, status, errno);
2128 cpu *processor,
2131 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
2132 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
2135 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
2143 convert_to_linux_stat (stat_pkt, &buf, processor, cia);
2145 emul_write_status(processor, status, errno);
2156 cpu *processor,
2159 int fildes = (int)cpu_registers(processor)->gpr[arg0];
2160 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
2171 convert_to_linux_stat (stat_pkt, &buf, processor, cia);
2173 emul_write_status(processor, status, errno);
2251 cpu *processor,
2315 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
2340 cpu *processor,
2404 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
2415 cpu *processor,
2418 int fildes = cpu_registers(processor)->gpr[arg0];
2419 unsigned request = cpu_registers(processor)->gpr[arg0+1];
2420 unsigned_word argp_addr = cpu_registers(processor)->gpr[arg0+2];
2457 convert_to_linux_termio (argp_addr, &host_termio, processor, cia);
2472 convert_to_linux_termios (argp_addr, &host_termio, processor, cia);
2479 emul_write_status(processor, status, errno);
2851 emul_linux_system_call(cpu *processor,
2857 cpu_registers(processor)->gpr[0],
2859 processor,