Lines Matching defs:processor

134 	   cpu *processor,
163 emul_write_buffer(&buf, addr, sizeof(buf), processor, cia);
171 cpu *processor,
190 emul_write_buffer(&buf, addr, sizeof(buf), processor, cia);
198 cpu *processor,
203 emul_write_buffer(&t, addr, sizeof(t), processor, cia);
210 cpu *processor,
215 emul_write_buffer(&tz, addr, sizeof(tz), processor, cia);
224 cpu *processor,
237 emul_write_buffer(out, addr, in->d_reclen, processor, cia);
251 cpu *processor,
272 emul_write_buffer(&rusage, addr, sizeof(rusage), processor, cia);
305 cpu *processor,
308 int status = (int)cpu_registers(processor)->gpr[arg0];
313 cpu_halt(processor, cia, was_exited, status);
321 cpu *processor,
325 int d = (int)cpu_registers(processor)->gpr[arg0];
326 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
327 int nbytes = cpu_registers(processor)->gpr[arg0+2];
338 emul_read_buffer(scratch_buffer, buf, nbytes, processor, cia);
352 emul_write_status(processor, status, errno);
354 emul_write_buffer(scratch_buffer, buf, status, processor, cia);
364 cpu *processor,
368 int d = (int)cpu_registers(processor)->gpr[arg0];
369 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
370 int nbytes = cpu_registers(processor)->gpr[arg0+2];
382 processor, cia);
389 emul_write_status(processor, status, errno);
400 cpu *processor,
403 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
405 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
406 int flags = (int)cpu_registers(processor)->gpr[arg0+1];
407 int mode = (int)cpu_registers(processor)->gpr[arg0+2];
435 emul_write_status(processor, status, errno);
443 cpu *processor,
446 int d = (int)cpu_registers(processor)->gpr[arg0];
468 emul_write_status(processor, status, errno);
476 cpu *processor,
480 unsigned_word new_break = cpu_registers(processor)->gpr[arg0];
484 printf_filtered ("0x%lx", (long)cpu_registers(processor)->gpr[arg0]);
488 processor,
492 emul_write_status(processor, 0, status);
503 cpu *processor,
507 emul_write_status(processor, (int)getpid(), 0);
518 cpu *processor,
522 emul_write_status(processor, (int)getuid(), 0);
533 cpu *processor,
537 emul_write_status(processor, (int)geteuid(), 0);
548 cpu *processor,
551 pid_t pid = cpu_registers(processor)->gpr[arg0];
552 int sig = cpu_registers(processor)->gpr[arg0+1];
560 cpu_halt(processor, cia, was_signalled, sig);
571 cpu *processor,
574 int oldd = cpu_registers(processor)->gpr[arg0];
582 emul_write_status(processor, status, err);
593 cpu *processor,
597 emul_write_status(processor, (int)getegid(), 0);
608 cpu *processor,
612 emul_write_status(processor, (int)getgid(), 0);
623 cpu *processor,
626 signed_word how = cpu_registers(processor)->gpr[arg0];
627 unsigned_word set = cpu_registers(processor)->gpr[arg0+1];
628 unsigned_word oset = cpu_registers(processor)->gpr[arg0+2];
636 emul_write_status(processor, 0, 0);
637 cpu_registers(processor)->gpr[4] = set;
648 cpu *processor,
651 int d = cpu_registers(processor)->gpr[arg0];
652 unsigned request = cpu_registers(processor)->gpr[arg0+1];
653 unsigned_word argp_addr = cpu_registers(processor)->gpr[arg0+2];
656 cpu_registers(processor)->gpr[arg0] = 0; /* just succeed */
669 emul_write_status(processor, status, errno);
684 cpu *processor,
687 int mask = cpu_registers(processor)->gpr[arg0];
693 emul_write_status(processor, umask(mask), 0);
704 cpu *processor,
707 int oldd = cpu_registers(processor)->gpr[arg0];
708 int newd = cpu_registers(processor)->gpr[arg0+1];
716 emul_write_status(processor, status, err);
727 cpu *processor,
730 int fd = cpu_registers(processor)->gpr[arg0];
731 int cmd = cpu_registers(processor)->gpr[arg0+1];
732 int arg = cpu_registers(processor)->gpr[arg0+2];
742 emul_write_status(processor, status, errno);
753 cpu *processor,
756 unsigned_word t_addr = cpu_registers(processor)->gpr[arg0];
757 unsigned_word tz_addr = cpu_registers(processor)->gpr[arg0+1];
767 emul_write_status(processor, status, err);
770 write_timeval(t_addr, t, processor, cia);
772 write_timezone(tz_addr, tz, processor, cia);
784 cpu *processor,
787 int who = cpu_registers(processor)->gpr[arg0];
788 unsigned_word rusage_addr = cpu_registers(processor)->gpr[arg0+1];
797 emul_write_status(processor, status, err);
800 write_rusage(rusage_addr, rusage, processor, cia);
813 cpu *processor,
816 int fd = cpu_registers(processor)->gpr[arg0];
817 unsigned_word buf_addr = cpu_registers(processor)->gpr[arg0+1];
828 emul_write_status(processor, status, errno);
831 write_statfs(buf_addr, buf, processor, cia);
843 cpu *processor,
847 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
848 unsigned_word stat_buf_addr = cpu_registers(processor)->gpr[arg0+1];
849 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
856 emul_write_status(processor, status, errno);
858 write_stat(stat_buf_addr, buf, processor, cia);
869 cpu *processor,
872 int fd = cpu_registers(processor)->gpr[arg0];
873 unsigned_word stat_buf_addr = cpu_registers(processor)->gpr[arg0+1];
883 emul_write_status(processor, status, errno);
884 write_stat(stat_buf_addr, buf, processor, cia);
895 cpu *processor,
899 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
900 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
901 unsigned_word stat_buf_addr = cpu_registers(processor)->gpr[arg0+1];
909 emul_write_status(processor, status, errno);
910 write_stat(stat_buf_addr, buf, processor, cia);
921 cpu *processor,
924 int fd = cpu_registers(processor)->gpr[arg0];
925 unsigned_word buf_addr = cpu_registers(processor)->gpr[arg0+1];
927 int nbytes = cpu_registers(processor)->gpr[arg0+2];
928 unsigned_word basep_addr = cpu_registers(processor)->gpr[arg0+3];
942 emul_write_status(processor, status, errno);
944 emul_write_word(basep_addr, basep, processor, cia);
946 write_direntries(buf_addr, buf, status, processor, cia);
957 cpu *processor,
963 cpu_registers(processor)->gpr[arg0],
965 processor,
976 cpu *processor,
979 int fildes = cpu_registers(processor)->gpr[arg0];
980 off_t offset = emul_read_gpr64(processor, arg0+2);
981 int whence = cpu_registers(processor)->gpr[arg0+4];
988 emul_write_status(processor, -1, errno);
990 emul_write_status(processor, 0, 0); /* success */
991 emul_write_gpr64(processor, 3, status);
1000 cpu *processor,
1004 unsigned_word name = cpu_registers(processor)->gpr[arg0];
1005 signed_word namelen = cpu_registers(processor)->gpr[arg0+1];
1006 unsigned_word oldp = cpu_registers(processor)->gpr[arg0+2];
1007 unsigned_word oldlenp = cpu_registers(processor)->gpr[arg0+3];
1016 mib = vm_data_map_read_word(cpu_data_map(processor),
1018 processor,
1030 mib = vm_data_map_read_word(cpu_data_map(processor),
1032 processor,
1040 oldlen = vm_data_map_read_word(cpu_data_map(processor),
1042 processor,
1048 emul_write_word(oldp, int_val, processor, cia);
1049 emul_write_word(oldlenp, oldlen, processor, cia);
1060 emul_write_status(processor, 0, 0); /* always succeed */
1811 emul_netbsd_system_call(cpu *processor,
1817 cpu_registers(processor)->gpr[0],
1819 processor,