Fix a 'stupido' that stopped (amongst other things) the cpu brand string
being read. The most obvious side effect the anita tests failed to detect they were running under qemu - so reported failures under qemu for things that qemu doesn't support.
This commit is contained in:
parent
b59de6cf0c
commit
c8b478cd74
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: identcpu.c,v 1.42 2014/02/23 22:38:40 dsl Exp $ */
|
||||
/* $NetBSD: identcpu.c,v 1.43 2014/02/25 17:56:03 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.42 2014/02/23 22:38:40 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.43 2014/02/25 17:56:03 dsl Exp $");
|
||||
|
||||
#include "opt_xen.h"
|
||||
|
||||
|
@ -833,7 +833,7 @@ cpu_probe(struct cpu_info *ci)
|
|||
* match with those generated by modern intel cpus.
|
||||
*/
|
||||
x86_cpuid(0x80000000, descs);
|
||||
if (descs[0] == 0x80000000)
|
||||
if (descs[0] >= 0x80000000)
|
||||
ci->ci_max_ext_cpuid = descs[0];
|
||||
else
|
||||
ci->ci_max_ext_cpuid = 0;
|
||||
|
|
Loading…
Reference in New Issue