summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-04-22 22:08:06 +0200
committerAlmuHS <almuhs@github.com>2019-04-22 22:08:06 +0200
commit8e1a459894aa5c2a795d8bd6d2765f60be7faaf4 (patch)
tree41ba8f7684525bb8ef0bd8e6efa947b8c79eadd5
parentd640e7d3436a547091923a02f8dbc051c80aceb5 (diff)
moved slave_main() call at bottom
-rw-r--r--i386/i386/mp_desc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 3c5bd58e..6ac91216 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -284,10 +284,6 @@ cpu_setup(){
if(i >= ncpu)
return -1;
- slave_main(i);
-
- printf("launched first thread of cpu %d\n", i);
-
/*TODO: Move this code to a separate function*/
/* assume Pentium 4, Xeon, or later processors */
@@ -328,7 +324,9 @@ cpu_setup(){
break;
}
+ slave_main(i);
+ printf("launched first thread of cpu %d\n", i);
//printf("cpu %d enabled\n", cpu_number());