Lines Matching defs:processor
143 cpu *processor,
172 emul_write_buffer(&buf, addr, sizeof(buf), processor, cia);
180 cpu *processor,
199 emul_write_buffer(&buf, addr, sizeof(buf), processor, cia);
207 cpu *processor,
212 emul_write_buffer(&t, addr, sizeof(t), processor, cia);
219 cpu *processor,
224 emul_write_buffer(&tz, addr, sizeof(tz), processor, cia);
233 cpu *processor,
246 emul_write_buffer(out, addr, in->d_reclen, processor, cia);
260 cpu *processor,
281 emul_write_buffer(&rusage, addr, sizeof(rusage), processor, cia);
314 cpu *processor,
317 int status = (int)cpu_registers(processor)->gpr[arg0];
322 cpu_halt(processor, cia, was_exited, status);
330 cpu *processor,
334 int d = (int)cpu_registers(processor)->gpr[arg0];
335 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
336 int nbytes = cpu_registers(processor)->gpr[arg0+2];
347 emul_read_buffer(scratch_buffer, buf, nbytes, processor, cia);
361 emul_write_status(processor, status, errno);
363 emul_write_buffer(scratch_buffer, buf, status, processor, cia);
373 cpu *processor,
377 int d = (int)cpu_registers(processor)->gpr[arg0];
378 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
379 int nbytes = cpu_registers(processor)->gpr[arg0+2];
391 processor, cia);
398 emul_write_status(processor, status, errno);
409 cpu *processor,
412 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
414 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
415 int flags = (int)cpu_registers(processor)->gpr[arg0+1];
416 int mode = (int)cpu_registers(processor)->gpr[arg0+2];
444 emul_write_status(processor, status, errno);
452 cpu *processor,
455 int d = (int)cpu_registers(processor)->gpr[arg0];
477 emul_write_status(processor, status, errno);
485 cpu *processor,
489 unsigned_word new_break = cpu_registers(processor)->gpr[arg0];
493 printf_filtered ("0x%lx", (long)cpu_registers(processor)->gpr[arg0]);
497 processor,
501 emul_write_status(processor, 0, status);
512 cpu *processor,
516 emul_write_status(processor, (int)getpid(), 0);
527 cpu *processor,
531 emul_write_status(processor, (int)getuid(), 0);
542 cpu *processor,
546 emul_write_status(processor, (int)geteuid(), 0);
557 cpu *processor,
560 pid_t pid = cpu_registers(processor)->gpr[arg0];
561 int sig = cpu_registers(processor)->gpr[arg0+1];
569 cpu_halt(processor, cia, was_signalled, sig);
580 cpu *processor,
583 int oldd = cpu_registers(processor)->gpr[arg0];
591 emul_write_status(processor, status, err);
602 cpu *processor,
606 emul_write_status(processor, (int)getegid(), 0);
617 cpu *processor,
621 emul_write_status(processor, (int)getgid(), 0);
632 cpu *processor,
635 signed_word how = cpu_registers(processor)->gpr[arg0];
636 unsigned_word set = cpu_registers(processor)->gpr[arg0+1];
637 unsigned_word oset = cpu_registers(processor)->gpr[arg0+2];
645 emul_write_status(processor, 0, 0);
646 cpu_registers(processor)->gpr[4] = set;
657 cpu *processor,
660 int d = cpu_registers(processor)->gpr[arg0];
661 unsigned request = cpu_registers(processor)->gpr[arg0+1];
662 unsigned_word argp_addr = cpu_registers(processor)->gpr[arg0+2];
665 cpu_registers(processor)->gpr[arg0] = 0; /* just succeed */
678 emul_write_status(processor, status, errno);
693 cpu *processor,
696 int mask = cpu_registers(processor)->gpr[arg0];
702 emul_write_status(processor, umask(mask), 0);
713 cpu *processor,
716 int oldd = cpu_registers(processor)->gpr[arg0];
717 int newd = cpu_registers(processor)->gpr[arg0+1];
725 emul_write_status(processor, status, err);
736 cpu *processor,
739 int fd = cpu_registers(processor)->gpr[arg0];
740 int cmd = cpu_registers(processor)->gpr[arg0+1];
741 int arg = cpu_registers(processor)->gpr[arg0+2];
751 emul_write_status(processor, status, errno);
762 cpu *processor,
765 unsigned_word t_addr = cpu_registers(processor)->gpr[arg0];
766 unsigned_word tz_addr = cpu_registers(processor)->gpr[arg0+1];
776 emul_write_status(processor, status, err);
779 write_timeval(t_addr, t, processor, cia);
781 write_timezone(tz_addr, tz, processor, cia);
793 cpu *processor,
796 int who = cpu_registers(processor)->gpr[arg0];
797 unsigned_word rusage_addr = cpu_registers(processor)->gpr[arg0+1];
806 emul_write_status(processor, status, err);
809 write_rusage(rusage_addr, rusage, processor, cia);
822 cpu *processor,
825 int fd = cpu_registers(processor)->gpr[arg0];
826 unsigned_word buf_addr = cpu_registers(processor)->gpr[arg0+1];
837 emul_write_status(processor, status, errno);
840 write_statfs(buf_addr, buf, processor, cia);
852 cpu *processor,
856 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
857 unsigned_word stat_buf_addr = cpu_registers(processor)->gpr[arg0+1];
858 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
865 emul_write_status(processor, status, errno);
867 write_stat(stat_buf_addr, buf, processor, cia);
878 cpu *processor,
881 int fd = cpu_registers(processor)->gpr[arg0];
882 unsigned_word stat_buf_addr = cpu_registers(processor)->gpr[arg0+1];
892 emul_write_status(processor, status, errno);
893 write_stat(stat_buf_addr, buf, processor, cia);
904 cpu *processor,
908 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
909 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
910 unsigned_word stat_buf_addr = cpu_registers(processor)->gpr[arg0+1];
918 emul_write_status(processor, status, errno);
919 write_stat(stat_buf_addr, buf, processor, cia);
930 cpu *processor,
933 int fd = cpu_registers(processor)->gpr[arg0];
934 unsigned_word buf_addr = cpu_registers(processor)->gpr[arg0+1];
936 int nbytes = cpu_registers(processor)->gpr[arg0+2];
937 unsigned_word basep_addr = cpu_registers(processor)->gpr[arg0+3];
951 emul_write_status(processor, status, errno);
953 emul_write_word(basep_addr, basep, processor, cia);
955 write_direntries(buf_addr, buf, status, processor, cia);
966 cpu *processor,
972 cpu_registers(processor)->gpr[arg0],
974 processor,
985 cpu *processor,
988 int fildes = cpu_registers(processor)->gpr[arg0];
989 off_t offset = emul_read_gpr64(processor, arg0+2);
990 int whence = cpu_registers(processor)->gpr[arg0+4];
997 emul_write_status(processor, -1, errno);
999 emul_write_status(processor, 0, 0); /* success */
1000 emul_write_gpr64(processor, 3, status);
1009 cpu *processor,
1013 unsigned_word name = cpu_registers(processor)->gpr[arg0];
1014 signed_word namelen = cpu_registers(processor)->gpr[arg0+1];
1015 unsigned_word oldp = cpu_registers(processor)->gpr[arg0+2];
1016 unsigned_word oldlenp = cpu_registers(processor)->gpr[arg0+3];
1025 mib = vm_data_map_read_word(cpu_data_map(processor),
1027 processor,
1039 mib = vm_data_map_read_word(cpu_data_map(processor),
1041 processor,
1049 oldlen = vm_data_map_read_word(cpu_data_map(processor),
1051 processor,
1057 emul_write_word(oldp, int_val, processor, cia);
1058 emul_write_word(oldlenp, oldlen, processor, cia);
1069 emul_write_status(processor, 0, 0); /* always succeed */
1820 emul_netbsd_system_call(cpu *processor,
1826 cpu_registers(processor)->gpr[0],
1828 processor,