X86-64: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
That was misleading
m corrected dead link
Line 28: Line 28:
===How do I detect if the CPU is 64 bits ?===
===How do I detect if the CPU is 64 bits ?===


You can find that out by checking CPUID. All AMD64 compliant processors have the longmode-capable-bit turned on in the extended feature flags (bit 29) in EDX, after calling CPUID with EAX=0x80000001. There are also other bits required by long mode, but you can see those yourself in CPUID at [http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/24594.pdf AMD general purpose instruction reference]
You can find that out by checking CPUID. All AMD64 compliant processors have the longmode-capable-bit turned on in the extended feature flags (bit 29) in EDX, after calling CPUID with EAX=0x80000001. There are also other bits required by long mode, but you can see those yourself in CPUID at [http://support.amd.com/us/Processor_TechDocs/24594.pdf AMD general purpose instruction reference]


==How do I enable Long Mode ?==
==How do I enable Long Mode ?==