summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-09-03 20:53:20 +0200
committerRichard Braun <rbraun@sceen.net>2014-09-03 20:53:20 +0200
commit47e2ed1c50c05f1a3a167f6efbbe65a306604fa0 (patch)
treec58023259e7d964e8f69b8420ea78d9b9d0a729e /arch/x86/machine/cpu.c
parentdbbd040f4eedf75671bb55d3fb3a4bf398c6750c (diff)
x86/cpu: move cpu_load_gdt() to the init section
Diffstat (limited to 'arch/x86/machine/cpu.c')
-rw-r--r--arch/x86/machine/cpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/machine/cpu.c b/arch/x86/machine/cpu.c
index 488b2b75..2505698a 100644
--- a/arch/x86/machine/cpu.c
+++ b/arch/x86/machine/cpu.c
@@ -166,6 +166,12 @@ cpu_seg_set_tss(char *table, unsigned int selector, struct cpu_tss *tss)
| (limit & CPU_DESC_SEG_LIMIT_LOW_MASK);
}
+/*
+ * Set the given GDT for the current processor, and reload its segment
+ * registers.
+ */
+void cpu_load_gdt(struct cpu *cpu, struct cpu_pseudo_desc *gdtr);
+
static void __init
cpu_init_gdt(struct cpu *cpu)
{