All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Grub Memory Map - Processor
Date: Mon, 5 Nov 2007 16:23:50 +0100	[thread overview]
Message-ID: <20071105152349.GC3583@thorin> (raw)
In-Reply-To: <D8C80422-4A5F-4E75-9890-DEC335C04790@gmail.com>

On Mon, Oct 29, 2007 at 12:14:53PM -0500, Andrei E. Warkentin wrote:
> Juan,
> 
> You may use the CPUID instruction to correctly identify the processor  
> your code is executing on. GRUB does not provide such information as  
> part of the Multiboot info.

Ah, uhm right.  I was thinking in terms of GRUB internals rather than multiboot
on my last reply.  Sorry for the confusion :-/

If you're working on an OS kernel, just use CPUID instruction like Andrei said.
You can see our cpuid command for an example on how to do it (license terms
apply if you copy actual code).

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2007-11-05 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 17:00 Grub Memory Map - Processor Juan_2007
2007-10-29 17:14 ` Andrei E. Warkentin
2007-11-05 15:23   ` Robert Millan [this message]
2007-11-05 15:21 ` Robert Millan

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=20071105152349.GC3583@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.