* Grub Memory Map - Processor
@ 2007-10-29 17:00 Juan_2007
2007-10-29 17:14 ` Andrei E. Warkentin
2007-11-05 15:21 ` Robert Millan
0 siblings, 2 replies; 4+ messages in thread
From: Juan_2007 @ 2007-10-29 17:00 UTC (permalink / raw)
To: grub-devel
I need to make a Project for the University and i wanted to know if any of
you guys, knew if the Grub left any information regarding the type of
microprocessor that the computer is using. i know the grub leaves
information about the amount of memory and i suppose it does the same with
the microprocessor, if any of you have any clues about it, or where can i
get that info, i´ll be glad to know. The GRUB webpage has an incomplete
manual, and the part of the memory map y incomplete so i can´t read it from
there.
Thanks, Juan.
--
View this message in context: http://www.nabble.com/Grub-Memory-Map---Processor-tf4709406.html#a13461040
Sent from the Grub - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Grub Memory Map - Processor
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
2007-11-05 15:21 ` Robert Millan
1 sibling, 1 reply; 4+ messages in thread
From: Andrei E. Warkentin @ 2007-10-29 17:14 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]
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.
Andrei Evgenievich Warkentin
andrey.warkentin@gmail.com
Cell: (+1) (847) 321-15-55
29.10.2007, в 12:00, Juan_2007 писал(а):
>
> I need to make a Project for the University and i wanted to know if
> any of
> you guys, knew if the Grub left any information regarding the type of
> microprocessor that the computer is using. i know the grub leaves
> information about the amount of memory and i suppose it does the
> same with
> the microprocessor, if any of you have any clues about it, or where
> can i
> get that info, i´ll be glad to know. The GRUB webpage has an
> incomplete
> manual, and the part of the memory map y incomplete so i can´t read
> it from
> there.
>
> Thanks, Juan.
> --
> View this message in context: http://www.nabble.com/Grub-Memory-
> Map---Processor-tf4709406.html#a13461040
> Sent from the Grub - Dev mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
[-- Attachment #2: Type: text/html, Size: 4429 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Grub Memory Map - Processor
2007-10-29 17:00 Grub Memory Map - Processor Juan_2007
2007-10-29 17:14 ` Andrei E. Warkentin
@ 2007-11-05 15:21 ` Robert Millan
1 sibling, 0 replies; 4+ messages in thread
From: Robert Millan @ 2007-11-05 15:21 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, Oct 29, 2007 at 10:00:43AM -0700, Juan_2007 wrote:
>
> I need to make a Project for the University and i wanted to know if any of
> you guys, knew if the Grub left any information regarding the type of
> microprocessor that the computer is using. i know the grub leaves
> information about the amount of memory and i suppose it does the same with
> the microprocessor, if any of you have any clues about it, or where can i
> get that info, i´ll be glad to know. The GRUB webpage has an incomplete
> manual, and the part of the memory map y incomplete so i can´t read it from
> there.
Check the `cpuid' command. It's quite incomplete (currently only detects
long mode flag), but the interface was designed with extensibility in mind
(patches to add detection for new cpuid stuff welcome).
--
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 /.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Grub Memory Map - Processor
2007-10-29 17:14 ` Andrei E. Warkentin
@ 2007-11-05 15:23 ` Robert Millan
0 siblings, 0 replies; 4+ messages in thread
From: Robert Millan @ 2007-11-05 15:23 UTC (permalink / raw)
To: The development of GRUB 2
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 /.)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-05 15:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-11-05 15:21 ` Robert Millan
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.