Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/cpuctl/arch Fix x86_identify() for amd64



details:   https://anonhg.NetBSD.org/src/rev/9dc5ba0a07ac
branches:  trunk
changeset: 783712:9dc5ba0a07ac
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Jan 05 15:33:00 2013 +0000

description:
Fix x86_identify() for amd64

diffstat:

 usr.sbin/cpuctl/arch/x86_64-asm.S |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (35 lines):

diff -r c711f7516d1b -r 9dc5ba0a07ac usr.sbin/cpuctl/arch/x86_64-asm.S
--- a/usr.sbin/cpuctl/arch/x86_64-asm.S Sat Jan 05 15:27:45 2013 +0000
+++ b/usr.sbin/cpuctl/arch/x86_64-asm.S Sat Jan 05 15:33:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_64-asm.S,v 1.2 2008/10/19 15:22:17 christos Exp $  */
+/*     $NetBSD: x86_64-asm.S,v 1.3 2013/01/05 15:33:00 dsl Exp $       */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -28,15 +28,6 @@
 
 #include <machine/asm.h>
 
-       .data
-
-_C_LABEL(cpu):
-       .long   0
-       .globl  _C_LABEL(cpu)
-_C_LABEL(cpu_info_level):
-       .long   -1
-       .globl  _C_LABEL(cpu_info_level)
-
        .text
 
 ENTRY(x86_cpuid2)
@@ -53,8 +44,5 @@
        ret
 
 ENTRY(x86_identify)
-       pushq   %rbx
-       cpuid
-       movl    %eax, PIC_GOT(_C_LABEL(cpu_info_level))
-       popq    %rbx
+       movl    $-1,%eax
        ret



Home | Main Index | Thread Index | Old Index