Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107796512
D26604.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26604.diff
View Options
Index: head/sys/arm/arm/syscall.c
===================================================================
--- head/sys/arm/arm/syscall.c
+++ head/sys/arm/arm/syscall.c
@@ -102,17 +102,19 @@
struct proc *p;
register_t *ap;
struct syscall_args *sa;
+ u_int nap;
int error;
+ nap = 4;
sa = &td->td_sa;
sa->code = td->td_frame->tf_r7;
ap = &td->td_frame->tf_r0;
if (sa->code == SYS_syscall) {
sa->code = *ap++;
- sa->nap--;
+ nap--;
} else if (sa->code == SYS___syscall) {
sa->code = ap[_QUAD_LOWWORD];
- sa->nap -= 2;
+ nap -= 2;
ap += 2;
}
p = td->td_proc;
@@ -121,11 +123,10 @@
else
sa->callp = &p->p_sysent->sv_table[sa->code];
error = 0;
- memcpy(sa->args, ap, sa->nap * sizeof(register_t));
- if (sa->callp->sy_narg > sa->nap) {
+ memcpy(sa->args, ap, nap * sizeof(register_t));
+ if (sa->callp->sy_narg > nap) {
error = copyin((void *)td->td_frame->tf_usr_sp, sa->args +
- sa->nap, (sa->callp->sy_narg - sa->nap) *
- sizeof(register_t));
+ nap, (sa->callp->sy_narg - nap) * sizeof(register_t));
}
if (error == 0) {
td->td_retval[0] = 0;
@@ -140,7 +141,6 @@
syscall(struct thread *td, struct trapframe *frame)
{
- td->td_sa.nap = 4;
syscallenter(td);
syscallret(td);
}
Index: head/sys/arm/include/proc.h
===================================================================
--- head/sys/arm/include/proc.h
+++ head/sys/arm/include/proc.h
@@ -82,7 +82,6 @@
u_int code;
struct sysent *callp;
register_t args[MAXARGS];
- u_int nap;
} __aligned(8);
#endif /* !_MACHINE_PROC_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 6:36 AM (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15930232
Default Alt Text
D26604.diff (1 KB)
Attached To
Mode
D26604: Remove td_sa.nap in sys/arm/
Attached
Detach File
Event Timeline
Log In to Comment