summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2018-01-12 20:14:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2018-01-12 20:14:22 +0000
commit666bc0914e210ef7d6b0f620451c2b78722bb517 (patch)
tree63735e4520551b34e05124c3e6381ed4610570a7 /sys/arch/amd64
parent1debdf1aca6345713bcbc7b12300c5d294337017 (diff)
Don't bother ucode updates in ramdisk. We don't have the files....
ok patrick
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/cpu.c6
-rw-r--r--sys/arch/amd64/conf/files.amd644
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c
index 6454ecd746d..8a779aa65eb 100644
--- a/sys/arch/amd64/amd64/cpu.c
+++ b/sys/arch/amd64/amd64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.109 2018/01/11 22:31:09 patrick Exp $ */
+/* $OpenBSD: cpu.c,v 1.110 2018/01/12 20:14:20 deraadt Exp $ */
/* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */
/*-
@@ -412,7 +412,9 @@ cpu_attach(struct device *parent, struct device *self, void *aux)
#endif /* MTRR */
cpu_init(ci);
cpu_init_mwait(sc);
+#ifndef SMALL_KERNEL
config_mountroot(NULL, cpu_ucode_attachhook);
+#endif
break;
case CPU_ROLE_BP:
@@ -436,7 +438,9 @@ cpu_attach(struct device *parent, struct device *self, void *aux)
ioapic_bsp_id = caa->cpu_apicid;
#endif
cpu_init_mwait(sc);
+#ifndef SMALL_KERNEL
config_mountroot(NULL, cpu_ucode_attachhook);
+#endif
break;
case CPU_ROLE_AP:
diff --git a/sys/arch/amd64/conf/files.amd64 b/sys/arch/amd64/conf/files.amd64
index 68e39ffaf9c..2ac3517699d 100644
--- a/sys/arch/amd64/conf/files.amd64
+++ b/sys/arch/amd64/conf/files.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: files.amd64,v 1.93 2018/01/11 22:31:09 patrick Exp $
+# $OpenBSD: files.amd64,v 1.94 2018/01/12 20:14:21 deraadt Exp $
maxpartitions 16
maxusers 2 16 128
@@ -16,7 +16,7 @@ file arch/amd64/amd64/locore.S
file arch/amd64/amd64/aes_intel.S crypto
file arch/amd64/amd64/aesni.c crypto
file arch/amd64/amd64/amd64errata.c
-file arch/amd64/amd64/ucode.c
+file arch/amd64/amd64/ucode.c !small_kernel
file arch/amd64/amd64/mem.c
file arch/amd64/amd64/amd64_mem.c mtrr
file arch/amd64/amd64/mtrr.c mtrr