summaryrefslogtreecommitdiff
path: root/kernel/proc.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-10-16 12:27:08 -0400
committerRobert Morris <[email protected]>2019-10-16 12:27:08 -0400
commit2821d43cc95b4f9faf79ff94daa5d3a8ea5e7861 (patch)
tree0ec34b42cbdbea98da513fbd12d82bd6bb22e0f6 /kernel/proc.c
parentf2df0fa5471c9951ff9a12bea51efbe22afb196e (diff)
downloadxv6-labs-2821d43cc95b4f9faf79ff94daa5d3a8ea5e7861.tar.gz
xv6-labs-2821d43cc95b4f9faf79ff94daa5d3a8ea5e7861.tar.bz2
xv6-labs-2821d43cc95b4f9faf79ff94daa5d3a8ea5e7861.zip
nits
Diffstat (limited to 'kernel/proc.c')
-rw-r--r--kernel/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/proc.c b/kernel/proc.c
index bbf3af0..ef2ad68 100644
--- a/kernel/proc.c
+++ b/kernel/proc.c
@@ -116,7 +116,7 @@ found:
// Set up new context to start executing at forkret,
// which returns to user space.
- memset(&p->context, 0, sizeof p->context);
+ memset(&p->context, 0, sizeof(p->context));
p->context.ra = (uint64)forkret;
p->context.sp = p->kstack + PGSIZE;