From 00cbda18e32737310a22f3f51d85074ed808364f Mon Sep 17 00:00:00 2001 From: visa Date: Sat, 22 Apr 2017 15:37:39 +0000 Subject: [PATCH] Fix an early boot failure on Loongson 3A2000. Reported and patch tested by wen heping --- sys/arch/loongson/loongson/machdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c index 1ffb40a707b..4f641a79824 100644 --- a/sys/arch/loongson/loongson/machdep.c +++ b/sys/arch/loongson/loongson/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.75 2017/04/02 15:48:19 visa Exp $ */ +/* $OpenBSD: machdep.c,v 1.76 2017/04/22 15:37:39 visa Exp $ */ /* * Copyright (c) 2009, 2010, 2014 Miodrag Vallat. @@ -601,6 +601,7 @@ mips_init(uint64_t argc, uint64_t argv, uint64_t envp, uint64_t cv, #endif #ifdef CPU_LOONGSON3 case 0x05: + case 0x08: loongson_ver = 0x3a; break; #endif -- 2.20.1