diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-05-26 18:02:02 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-05-26 18:02:02 +0000 |
commit | 5e627e7211d58cbc5592abf3554e42c345f36600 (patch) | |
tree | f7e66d12afb8e87e946aac4c0e2646466418aa66 /sys/arch/amd64/include | |
parent | c63e9d3397a2566baeb7e7f2b65e121dbce03988 (diff) |
Initialize ci_idle_pcb->pcb_cr0 just once, in cpu_attach().
For secondary CPUs, %cr0 is initially loaded in cpu_spinup_trampoline so
don't load it again in cpu_hatch().
ok kettenis@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/cpu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index 2fe3b7e3574..70e2d4642f7 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.121 2018/05/23 05:37:01 guenther Exp $ */ +/* $OpenBSD: cpu.h,v 1.122 2018/05/26 18:02:01 guenther Exp $ */ /* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */ /*- @@ -267,7 +267,6 @@ extern void need_resched(struct cpu_info *); extern struct cpu_info *cpu_info[MAXCPUS]; void cpu_boot_secondary_processors(void); -void cpu_init_idle_pcbs(void); void cpu_kick(struct cpu_info *); void cpu_unidle(struct cpu_info *); @@ -371,7 +370,6 @@ void dumpconf(void); void cpu_reset(void); void x86_64_proc0_tss_ldt_init(void); void x86_64_bufinit(void); -void x86_64_init_pcb_tss_ldt(struct cpu_info *); void cpu_proc_fork(struct proc *, struct proc *); int amd64_pa_used(paddr_t); extern void (*cpu_idle_enter_fcn)(void); |