PERFORCE change 182226 for review
Oleksandr Tymoshenko
gonzo at skunkworks.freebsd.org
Wed Aug 11 18:26:48 UTC 2010
http://p4web.freebsd.org/@@182226?ac=10
Change 182226 by gonzo at gonzo_figaro on 2010/08/10 21:24:42
New way of handling syscalls introduced by r208453
Affected files ...
.. //depot/projects/avr32/src/sys/avr32/avr32/elf_machdep.c#5 edit
.. //depot/projects/avr32/src/sys/avr32/avr32/trap.c#15 edit
.. //depot/projects/avr32/src/sys/avr32/avr32/vm_machdep.c#13 edit
Differences ...
==== //depot/projects/avr32/src/sys/avr32/avr32/elf_machdep.c#5 (text+ko) ====
@@ -35,6 +35,7 @@
#include <sys/linker.h>
#include <sys/sysent.h>
#include <sys/imgact_elf.h>
+#include <sys/proc.h>
#include <sys/syscall.h>
#include <sys/signalvar.h>
#include <sys/vnode.h>
@@ -75,7 +76,10 @@
.sv_setregs = exec_setregs,
.sv_fixlimit = NULL,
.sv_maxssiz = NULL,
- .sv_flags = SV_ABI_FREEBSD | SV_ILP32
+ .sv_flags = SV_ABI_FREEBSD | SV_ILP32,
+ .sv_set_syscall_retval = cpu_set_syscall_retval,
+ .sv_fetch_syscall_args = NULL, /* XXXKIB */
+ .sv_syscallnames = syscallnames,
};
static Elf32_Brandinfo freebsd_brand_info = {
==== //depot/projects/avr32/src/sys/avr32/avr32/trap.c#15 (text+ko) ====
@@ -466,7 +466,6 @@
CTR4(KTR_SYSC, "syscall enter thread %p pid %d proc %s code %d", td,
td->td_proc->p_pid, td->td_name, code);
- td->td_syscalls++;
if (error == 0) {
td->td_retval[0] = 0;
td->td_retval[1] = 0;
==== //depot/projects/avr32/src/sys/avr32/avr32/vm_machdep.c#13 (text+ko) ====
@@ -261,3 +261,8 @@
}
}
+void
+cpu_set_syscall_retval(struct thread *td, int error)
+{
+ panic("cpu_set_syscall_retval: implement me");
+}
More information about the p4-projects
mailing list