Fix an early boot failure on Loongson 3A2000.
authorvisa <visa@openbsd.org>
Sat, 22 Apr 2017 15:37:39 +0000 (15:37 +0000)
committervisa <visa@openbsd.org>
Sat, 22 Apr 2017 15:37:39 +0000 (15:37 +0000)
Reported and patch tested by wen heping

sys/arch/loongson/loongson/machdep.c

index 1ffb40a..4f641a7 100644 (file)
@@ -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