summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2018-08-30 13:46:48 -0400
committerFrans Kaashoek <[email protected]>2018-08-30 13:46:48 -0400
commit96e4e2f4d1dd9a8634088dcd19a9e343b711f7ea (patch)
tree267507c8f1da7d2adb6aa65ab0e7d3faa1e2b4df /main.c
parent8f63beaacb158f24ef7ff2e1f3974702c172d295 (diff)
downloadxv6-labs-96e4e2f4d1dd9a8634088dcd19a9e343b711f7ea.tar.gz
xv6-labs-96e4e2f4d1dd9a8634088dcd19a9e343b711f7ea.tar.bz2
xv6-labs-96e4e2f4d1dd9a8634088dcd19a9e343b711f7ea.zip
thanks eyalz800
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 774ed54..9924e64 100644
--- a/main.c
+++ b/main.c
@@ -83,7 +83,7 @@ startothers(void)
// is running in low memory, so we use entrypgdir for the APs too.
stack = kalloc();
*(void**)(code-4) = stack + KSTACKSIZE;
- *(void**)(code-8) = mpenter;
+ *(void(**)(void))(code-8) = mpenter;
*(int**)(code-12) = (void *) V2P(entrypgdir);
lapicstartap(c->apicid, V2P(code));