summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/machine/cpu.h1
-rw-r--r--kern/llsync.c1
-rw-r--r--kern/percpu.h5
-rw-r--r--kern/xcall.c1
4 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/machine/cpu.h b/arch/x86/machine/cpu.h
index c471112..b9f8c0d 100644
--- a/arch/x86/machine/cpu.h
+++ b/arch/x86/machine/cpu.h
@@ -693,6 +693,7 @@ INIT_OP_DECLARE(cpu_setup);
/*
* This init operation provides :
* - cpu_count()
+ * - access to percpu variables on all processors
*/
INIT_OP_DECLARE(cpu_mp_probe);
diff --git a/kern/llsync.c b/kern/llsync.c
index 36233fa..5fcbd73 100644
--- a/kern/llsync.c
+++ b/kern/llsync.c
@@ -108,6 +108,7 @@ llsync_setup(void)
}
INIT_OP_DEFINE(llsync_setup,
+ INIT_OP_DEP(cpu_mp_probe, true),
INIT_OP_DEP(log_setup, true),
INIT_OP_DEP(mutex_setup, true),
INIT_OP_DEP(spinlock_setup, true),
diff --git a/kern/percpu.h b/kern/percpu.h
index b196acb..5c5748a 100644
--- a/kern/percpu.h
+++ b/kern/percpu.h
@@ -106,13 +106,16 @@ int percpu_add(unsigned int cpu);
/*
* This init operation provides :
- * - percpu section is registered as the BSP percpu area
+ * - access to percpu variables on processor 0
*/
INIT_OP_DECLARE(percpu_bootstrap);
/*
* This init operation provides :
* - new percpu areas can be created
+ *
+ * The dependency that provides access to percpu variables on all processors
+ * is cpu_mp_probe.
*/
INIT_OP_DECLARE(percpu_setup);
diff --git a/kern/xcall.c b/kern/xcall.c
index 215c1c7..fb60bac 100644
--- a/kern/xcall.c
+++ b/kern/xcall.c
@@ -129,6 +129,7 @@ xcall_setup(void)
}
INIT_OP_DEFINE(xcall_setup,
+ INIT_OP_DEP(cpu_mp_probe, true),
INIT_OP_DEP(thread_bootstrap, true),
INIT_OP_DEP(spinlock_setup, true));