Lines Matching +full:ecx +full:- +full:2000

1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
6 * Copyright (c) 2000 Marcel Moolenaar
69 lru->ru_utime.tv_sec = ru->ru_utime.tv_sec; in bsd_to_linux_rusage()
70 lru->ru_utime.tv_usec = ru->ru_utime.tv_usec; in bsd_to_linux_rusage()
71 lru->ru_stime.tv_sec = ru->ru_stime.tv_sec; in bsd_to_linux_rusage()
72 lru->ru_stime.tv_usec = ru->ru_stime.tv_usec; in bsd_to_linux_rusage()
73 lru->ru_maxrss = ru->ru_maxrss; in bsd_to_linux_rusage()
74 lru->ru_ixrss = ru->ru_ixrss; in bsd_to_linux_rusage()
75 lru->ru_idrss = ru->ru_idrss; in bsd_to_linux_rusage()
76 lru->ru_isrss = ru->ru_isrss; in bsd_to_linux_rusage()
77 lru->ru_minflt = ru->ru_minflt; in bsd_to_linux_rusage()
78 lru->ru_majflt = ru->ru_majflt; in bsd_to_linux_rusage()
79 lru->ru_nswap = ru->ru_nswap; in bsd_to_linux_rusage()
80 lru->ru_inblock = ru->ru_inblock; in bsd_to_linux_rusage()
81 lru->ru_oublock = ru->ru_oublock; in bsd_to_linux_rusage()
82 lru->ru_msgsnd = ru->ru_msgsnd; in bsd_to_linux_rusage()
83 lru->ru_msgrcv = ru->ru_msgrcv; in bsd_to_linux_rusage()
84 lru->ru_nsignals = ru->ru_nsignals; in bsd_to_linux_rusage()
85 lru->ru_nvcsw = ru->ru_nvcsw; in bsd_to_linux_rusage()
86 lru->ru_nivcsw = ru->ru_nivcsw; in bsd_to_linux_rusage()
105 error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); in linux_readv()
108 error = kern_readv(td, uap->fd, auio); in linux_readv()
122 switch (args->what & 0xFFFF) { in linux_ipc()
125 return (kern_semop(td, args->arg1, PTRIN(args->ptr), in linux_ipc()
126 args->arg2, NULL)); in linux_ipc()
131 a.key = args->arg1; in linux_ipc()
132 a.nsems = args->arg2; in linux_ipc()
133 a.semflg = args->arg3; in linux_ipc()
140 a.semid = args->arg1; in linux_ipc()
141 a.semnum = args->arg2; in linux_ipc()
142 a.cmd = args->arg3; in linux_ipc()
143 error = copyin(PTRIN(args->ptr), &a.arg, sizeof(a.arg)); in linux_ipc()
151 a.semid = args->arg1; in linux_ipc()
152 a.tsops = PTRIN(args->ptr); in linux_ipc()
153 a.nsops = args->arg2; in linux_ipc()
154 a.timeout = PTRIN(args->arg5); in linux_ipc()
160 a.msqid = args->arg1; in linux_ipc()
161 a.msgp = PTRIN(args->ptr); in linux_ipc()
162 a.msgsz = args->arg2; in linux_ipc()
163 a.msgflg = args->arg3; in linux_ipc()
169 a.msqid = args->arg1; in linux_ipc()
170 a.msgsz = args->arg2; in linux_ipc()
171 a.msgflg = args->arg3; in linux_ipc()
172 if ((args->what >> 16) == 0) { in linux_ipc()
176 if (args->ptr == 0) in linux_ipc()
178 error = copyin(PTRIN(args->ptr), &tmp, sizeof(tmp)); in linux_ipc()
184 a.msgp = PTRIN(args->ptr); in linux_ipc()
185 a.msgtyp = args->arg5; in linux_ipc()
192 a.key = args->arg1; in linux_ipc()
193 a.msgflg = args->arg2; in linux_ipc()
199 a.msqid = args->arg1; in linux_ipc()
200 a.cmd = args->arg2; in linux_ipc()
201 a.buf = PTRIN(args->ptr); in linux_ipc()
209 a.shmid = args->arg1; in linux_ipc()
210 a.shmaddr = PTRIN(args->ptr); in linux_ipc()
211 a.shmflg = args->arg2; in linux_ipc()
215 addr = td->td_retval[0]; in linux_ipc()
216 error = copyout(&addr, PTRIN(args->arg3), sizeof(addr)); in linux_ipc()
217 td->td_retval[0] = 0; in linux_ipc()
223 a.shmaddr = PTRIN(args->ptr); in linux_ipc()
229 a.key = args->arg1; in linux_ipc()
230 a.size = args->arg2; in linux_ipc()
231 a.shmflg = args->arg3; in linux_ipc()
237 a.shmid = args->arg1; in linux_ipc()
238 a.cmd = args->arg2; in linux_ipc()
239 a.buf = PTRIN(args->ptr); in linux_ipc()
256 error = copyin(args->ptr, &linux_args, sizeof(linux_args)); in linux_old_select()
285 pcb = td->td_pcb; in linux_set_cloned_tls()
287 pcb->pcb_gsbase = (register_t)info.base_addr; in linux_set_cloned_tls()
288 td->td_frame->tf_gs = GSEL(GUGS32_SEL, SEL_UPL); in linux_set_cloned_tls()
299 td->td_frame->tf_rsp = stack; in linux_set_upcall()
305 td->td_frame->tf_rax = 0; in linux_set_upcall()
315 error = copyin(args->ptr, &linux_args, sizeof(linux_args)); in linux_mmap()
329 if (args->level < 0 || args->level > 3) in linux_iopl()
333 if ((error = securelevel_gt(td->td_ucred, 0)) != 0) in linux_iopl()
335 td->td_frame->tf_rflags = (td->td_frame->tf_rflags & ~PSL_IOPL) | in linux_iopl()
336 (args->level * (PSL_IOPL / 3)); in linux_iopl()
348 if (args->nsa != NULL) { in linux_sigaction()
349 error = copyin(args->nsa, &osa, sizeof(l_osigaction_t)); in linux_sigaction()
359 error = linux_do_sigaction(td, args->sig, args->nsa ? &act : NULL, in linux_sigaction()
360 args->osa ? &oact : NULL); in linux_sigaction()
362 if (args->osa != NULL && !error) { in linux_sigaction()
367 error = copyout(&osa, args->osa, sizeof(l_osigaction_t)); in linux_sigaction()
385 mask.__mask = args->mask; in linux_sigsuspend()
393 struct proc *p = td->td_proc; in linux_pause()
397 sigmask = td->td_sigmask; in linux_pause()
410 if (uap->tp) { in linux_gettimeofday()
414 error = copyout(&atv32, uap->tp, sizeof(atv32)); in linux_gettimeofday()
416 if (error == 0 && uap->tzp != NULL) { in linux_gettimeofday()
419 error = copyout(&rtz, uap->tzp, sizeof(rtz)); in linux_gettimeofday()
432 if (uap->tp) { in linux_settimeofday()
433 error = copyin(uap->tp, &atv32, sizeof(atv32)); in linux_settimeofday()
441 if (uap->tzp) { in linux_settimeofday()
442 error = copyin(uap->tzp, &atz, sizeof(atz)); in linux_settimeofday()
457 error = kern_getrusage(td, uap->who, &s); in linux_getrusage()
460 if (uap->rusage != NULL) in linux_getrusage()
461 error = linux_copyout_rusage(&s, uap->rusage); in linux_getrusage()
473 error = copyin(args->desc, &info, sizeof(struct l_user_desc)); in linux_set_thread_area()
482 * the per-thread descriptors. in linux_set_thread_area()
485 * three per-thread descriptors and use just the first one. in linux_set_thread_area()
504 case -1: in linux_set_thread_area()
517 error = copyout(&info, args->desc, sizeof(struct l_user_desc)); in linux_set_thread_area()
521 pcb = td->td_pcb; in linux_set_thread_area()
523 pcb->pcb_gsbase = (register_t)info.base_addr; in linux_set_thread_area()
534 l_regset->ebx = b_reg->r_ebx; in bsd_to_linux_regset32()
535 l_regset->ecx = b_reg->r_ecx; in bsd_to_linux_regset32()
536 l_regset->edx = b_reg->r_edx; in bsd_to_linux_regset32()
537 l_regset->esi = b_reg->r_esi; in bsd_to_linux_regset32()
538 l_regset->edi = b_reg->r_edi; in bsd_to_linux_regset32()
539 l_regset->ebp = b_reg->r_ebp; in bsd_to_linux_regset32()
540 l_regset->eax = b_reg->r_eax; in bsd_to_linux_regset32()
541 l_regset->ds = b_reg->r_ds; in bsd_to_linux_regset32()
542 l_regset->es = b_reg->r_es; in bsd_to_linux_regset32()
543 l_regset->fs = b_reg->r_fs; in bsd_to_linux_regset32()
544 l_regset->gs = b_reg->r_gs; in bsd_to_linux_regset32()
545 l_regset->orig_eax = b_reg->r_eax; in bsd_to_linux_regset32()
546 l_regset->eip = b_reg->r_eip; in bsd_to_linux_regset32()
547 l_regset->cs = b_reg->r_cs; in bsd_to_linux_regset32()
548 l_regset->eflags = b_reg->r_eflags; in bsd_to_linux_regset32()
549 l_regset->esp = b_reg->r_esp; in bsd_to_linux_regset32()
550 l_regset->ss = b_reg->r_ss; in bsd_to_linux_regset32()