Hardware Secrets
Home | Camera | Case | CE | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
Gabriel's Blog
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Twitter
Newsletter
Subscribe today!
Search




Recommended
The Winn L. Rosch Hardware Bible, 6th Edition (2 Vol. Set)
The Winn L. Rosch Hardware Bible, 6th Edition (2 Vol. Set), by Winn L Rosch (Que), starting at $3.29
Home » CPU
AMD 64-bit architecture (x86-64)
Author: Ricardo Zelenovsky and Alexandre Mendonça
Type: Articles Last Updated: October 26, 2004
Page: 2 of 3
Real-time pricing for ASUS M4A785TD-V-EVO.
Asus EVO AMD 7850G Socket AM3 Motherboard - ATX PCIe HDMI TurboV SATA M4A785TD-V M4A785TD-V EVO
CircuitCity: $99.99 CompUSA: $109.99
Newegg: $99.99 eCost: $105.99

Operating Modes

The long mode is activated through a control bit called LMA (Long Mode Active). When the LMA is inactivated, the processor will operate in the standard x86 mode and will be compatible to the operating systems and applications of 16 and 32 bits, that is, it will be compatible with everything that exists nowadays. When the LMA is activated (long mode), the 64-bit extension will be enabled, offering a new 64-bit CPU. The long mode is also divided into two sub-modes: the 64-bit mode and the compatible mode. These two sub-modes are controlled by the D and L bits, present at the descriptor pointed by the CS (Code Segment) register. The compatible mode is interesting because it allows, as a program, to run 16- or 32-bit applications inside the 64-bit mode. It is something similar to the virtual mode 86 of the 386 processors. Figure 1 shows an explanation of those modes.

 

CS.L=0 CS.D=0

CS.L=0 CS.D=1

CS.L=1 CS.D=0

CS.L=1 CS.D=1

LMA=0
Legal Mode

Standard 16-bit Mode

Standard 32-bit Mode

Standard 16-bit Mode

Standard 32-bit Mode

LMA=1
Long Mode Active

16-bit Compatibility Mode

32-bit Compatibility Mode

64-bit Mode

Reserved

Figure 1: Operation modes of the x86-64 family.

The old x86 mode (32 or 16 bits) is called Legal Mode (LMA=0). When in this mode, the x86-64 CPUs can work with data of 16 or 32 bits. Notice that, when in this mode, the state of the CS.L bit has no meaning, that is, it is a don't care.

When put in 64-bit Long Mode (LMA=1, CS.L=1 and CS.D=0), the standard size of the operand is of 32 bits and the standard size for addressing is of 64 bits. With the use of instruction prefixes, the size of the operand can be altered to 64 or 16 bits and the size of the address to 32 bits.

If set in the Long Mode, Compatibility Mode (LMA=1 and CS.L=0), we have the binary compatibility with the applications written in x86 16 and 32 bits. That is really interesting, because an operating system in long mode can run the present 16- and 32-bit programs only by setting to zero the CS.L bit of the descriptor pointed by the code segment of those applications. In the compatible sub-mode, the CS.D bit continues to select between the 16- and 32-bit modes. It should also be noticed that, when the processor is in legal mode, the state of the CS.L bit has no meaning, that is, it is a don't care. Figure 2 shows the programming details of this new architecture.

 

Mode

Operating System

Recompilation Necessity

Address Lenght

Operand Size

Extended Registers

Registers Size

Long Mode - 64-bit Mode

New 64-bit O.S.

Yes

64 bits

32 bits

Yes

64 bits

Long Mode - Compatibility Mode

New 64-bit O.S.

No

32 or 16 bits

32 bits

No

32 bits

Legal Mode

32-bit O.S.

No

32 bits

32 bits

No

32 bits

Legal Mode

16-bit O.S.

No

16 bits

16 bits

No

32 bits

Figure 2: Programming characteristics of the AMD x86-64 architecture.
Pages (3): « 1 [2] 3 »
Print Version | Send to Friend | | Bookmark Article | Comments (4)

Related Content
  • The HyperTransport Bus Used By AMD Processors
  • Athlon 64 Overclocking
  • Athlon 64 Cores
  • All Athlon 64 Models
  • All Opteron Models

  • Recommended Deal.
    StarTech FAN478StarTech FAN478

    startech fan478

    J & R: $14.99 CameraWorld: $13.35
    CompUPlus: $11.99 eCost: $13.99

    RSSLatest News
    Sparkle Announces 2 GB GeForce GT 220 Video Card
    March 19, 2010 - 10:17 AM PST
    PowerColor Launches HD 5770 Eyefinity 5 Video Card
    March 19, 2010 - 9:59 AM PST
    In Win Intros IRONCLAD Mid-Tower Case
    March 19, 2010 - 9:39 AM PST
    A-Data Intros 8 GB DDR3 Memory Kit
    March 17, 2010 - 3:40 PM PST
    Intel Launches Xeon 5600 Series and Core i7-980X Processor
    March 16, 2010 - 3:46 PM PST
    Intel Launches 40 GB X25-V SSD Drive
    March 15, 2010 - 1:43 PM PST
    Arctic Cooling Intros Cooler for Radeon HD 5970 and HD 5870
    March 12, 2010 - 12:19 PM PST
    OCZ Announces 32 GB Onyx SSD Unit
    March 10, 2010 - 4:08 PM PST
    MSI Launches X-Slim X360 Laptop
    March 9, 2010 - 4:15 PM PST
    Spire Launches TherMax Eclipse II CPU Cooler
    March 8, 2010 - 2:59 PM PST
    .:: More News ::.

    RSSLatest Content
    All Mobile Celeron Models
    Epson WorkForce 610 All-in-One Printer Review
    All Core i5 Models
    Mionix Naos 5000 Mouse Review
    Arctic Cooling E361-WM Earphones Review
    Don’t Let Your IT Projects Become Vaporware
    OCZ Z Series 850 W Power Supply Review
    HIS Radeon HD 5570 Fan Video Card Review
    Core i7-980X CPU Review
    Gelid Tranquillo CPU Cooler Review
    How to Discover Your Power Supply Real Manufacturer
    OCZ Z Series 1000 W Power Supply Review
    Amacrox Free Earth 85PLUS 650 W Power Supply Review
    ECS A890GXM-A Motherboard
    ASUS M4A89GTD PRO/USB3 Motherboard Review

    Our Most Popular Articles
    Maximum CPU Temperature
    1,155,084 views
    How to Find Out Your Motherboard Manufacturer and Model
    817,868 views
    nVidia Chips Comparison Table
    743,277 views
    Connecting Two PCs Using a USB-USB Cable
    672,577 views
    How To Correctly Apply Thermal Grease
    625,480 views
    AMD ATI Chips Comparison Table
    610,038 views
    ATI Radeon X1300 Pro Review
    506,728 views
    ATI Radeon X1600 XT Review
    494,391 views
    How To Perform a BIOS Upgrade
    443,528 views
    Understanding RAM Timings
    381,617 views

    Latest Threads in Our Forums
    Custom PC Help
    by thebigman101
    All Mobile Celeron Models
    by Hardware Secrets Team
    Sparkle Announces 2 GB GeForce GT 220 Video Card
    by Hardware Secrets Team
    PowerColor Launches HD 5770 Eyefinity 5 Video Card
    by Hardware Secrets Team
    In Win Intros IRONCLAD Mid-Tower Case
    by Hardware Secrets Team
    Corsair CX400W Power Supply Review
    by Olle P
    Epson WorkForce 610 All-in-One Printer Review
    by Hardware Secrets Team
    A-Data Intros 8 GB DDR3 Memory Kit
    by Hardware Secrets Team
    Epson WorkForce 610 All-in-One Printer
    by Hardware Secrets Team
    Mionix Naos 5000 Mouse Review
    by Mescalamba
    .:: Visit Our Forums ::.


    © 2004-10, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)