summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/stand/efiboot/conf.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-07-22 11:51:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-07-22 11:51:31 +0000
commit9a7227e1825e7fea760c9283bd1c282952750c4b (patch)
tree67b9305f51ccefe1f3c77fcef4b4ecfdf04df325 /sys/arch/armv7/stand/efiboot/conf.c
parentee8f931e9b4b24427b764f1d6ae50875975abe75 (diff)
Disable caches and MMU before jumping to the kernel entry point. Needed
because UEFI on 32-bit ARM is supposed to leave them enabled and U-boot was changed (starting with release 2019.04) to follow the spec here. However the OpenBSD/armv7 kernel expects to be booted with caches and MMU turned off. Note that there are still issues on boards that enable the non-architected L2 cache. UEFI demands that such caches are not turned on, but U-Boot does turn them on and this makes our kernel fail to boot. With help from jsg@ ok jsg@
Diffstat (limited to 'sys/arch/armv7/stand/efiboot/conf.c')
-rw-r--r--sys/arch/armv7/stand/efiboot/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/stand/efiboot/conf.c b/sys/arch/armv7/stand/efiboot/conf.c
index 67c78dd1128..2fd31d00912 100644
--- a/sys/arch/armv7/stand/efiboot/conf.c
+++ b/sys/arch/armv7/stand/efiboot/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.15 2019/04/10 04:19:32 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.16 2019/07/22 11:51:30 kettenis Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -36,7 +36,7 @@
#include "efidev.h"
#include "efipxe.h"
-const char version[] = "1.3";
+const char version[] = "1.4";
int debug = 0;
struct fs_ops file_system[] = {