Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Initialize cpuid_level at compile-time, n...
details: https://anonhg.NetBSD.org/src/rev/9cc268ad9cb8
branches: trunk
changeset: 345660:9cc268ad9cb8
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Jun 04 09:52:41 2016 +0000
description:
Initialize cpuid_level at compile-time, not run-time. Same as amd64.
diffstat:
sys/arch/i386/i386/locore.S | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 050a34a23f70 -r 9cc268ad9cb8 sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S Sat Jun 04 09:45:57 2016 +0000
+++ b/sys/arch/i386/i386/locore.S Sat Jun 04 09:52:41 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.127 2016/06/04 09:45:57 maxv Exp $ */
+/* $NetBSD: locore.S,v 1.128 2016/06/04 09:52:41 maxv Exp $ */
/*
* Copyright-o-rama!
@@ -128,7 +128,7 @@
*/
#include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.127 2016/06/04 09:45:57 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.128 2016/06/04 09:52:41 maxv Exp $");
#include "opt_compat_oldboot.h"
#include "opt_copy_symtab.h"
@@ -317,7 +317,7 @@
LABEL(cputype) .long 0 /* are we 80486, Pentium, or.. */
END(cputype)
.type _C_LABEL(cpuid_level), @object
-LABEL(cpuid_level) .long 0 /* max. level accepted by cpuid instr */
+LABEL(cpuid_level) .long -1 /* max. level accepted by cpuid instr */
END(cpuid_level)
.type _C_LABEL(atdevbase), @object
LABEL(atdevbase) .long 0 /* location of start of iomem in virt */
@@ -402,8 +402,6 @@
xorl %eax,%eax
movw %ax,%fs
movw %ax,%gs
- decl %eax
- movl %eax,RELOC(cpuid_level)
/* Find out our CPU type. */
Home |
Main Index |
Thread Index |
Old Index