9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Anthony Martin <ality@pbrane.org>
To: 9front@googlegroups.com
Subject: realemu cpuid
Date: Sat, 23 Jun 2012 21:43:02 -0700	[thread overview]
Message-ID: <20120624044301.GA28115@dinah> (raw)

# HG changeset patch
# User Anthony Martin <ality@pbrane.org>
# Date 1340512597 25200
# Node ID 3dc502e420d83ec1e8e3ea8f9bbd5456f54efdac
# Parent  0122c3847ae02d0a524dc96f28d72b274a380b3a
realemu: fix cpuid vendor id

ECX and EDX were incorrectly swapped.

Ref: http://wiki.osdev.org/CPUID

diff -r 0122c3847ae0 -r 3dc502e420d8 sys/src/cmd/aux/realemu/xec.c
--- a/sys/src/cmd/aux/realemu/xec.c	Sun Jun 24 05:35:46 2012 +0200
+++ b/sys/src/cmd/aux/realemu/xec.c	Sat Jun 23 21:36:37 2012 -0700
@@ -932,9 +932,9 @@
 	} tab[] = {
 		0,
 			5,
-			0x756e6547,
-			0x49656e69,
-			0x6c65746e,
+			0x756e6547, /* Genu */
+			0x6c65746e, /* ntel */
+			0x49656e69, /* ineI */
 		1,
 			4<<8,
 			0x00000000,


             reply	other threads:[~2012-06-24  4:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-24  4:43 Anthony Martin [this message]
2012-06-24  5:31 ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120624044301.GA28115@dinah \
    --to=ality@pbrane.org \
    --cc=9front@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).