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 $2.31
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
$ Check REAL-TIME pricing for ASUS M3N78-VM AM2+/AM2 NVIDIA GeForce 8200 HDMI Micro ATX AMD Motherboard - Retail $.
Newegg: $74.99 CDW: $79.99
Directron: $72.99 Amazon: $73.24

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.
    Power Supply VX550W 550W Active ATXCorsair VX Series 80 Plus 550-Watt Certified Power Supply CMPSU-550VX


    Wal-Mart: $98.88 Amazon: $88.77
    ClubMac: $98.99 Newegg: $79.99

    RSSLatest News
    Gigabyte Intros Socket AM3 Motherboards with USB 3.0/SATA-600
    November 24, 2009 - 12:39 PM PST
    Imation Announces WUSB External Hard Drive
    November 23, 2009 - 9:18 AM PST
    IN WIN LAN Party in Southern California
    November 20, 2009 - 12:37 PM PST
    Patriot Announces PS-100 SSD Series
    November 19, 2009 - 7:30 AM PST
    Antec Launches TPQ-1200 PSU
    November 18, 2009 - 11:30 AM PST
    AMD/ATI Launches Radeon HD 5970
    November 18, 2009 - 10:18 AM PST
    OCZ Launches Colossus SSD Series
    November 17, 2009 - 1:39 PM PST
    NZXT Unleashes Tempest EVO Mid-Tower Case
    November 17, 2009 - 1:06 PM PST
    nVidia Launches GeForce GT 240
    November 17, 2009 - 10:18 AM PST
    Arctic Cooling Announces Accelero TWIN TURBO PRO VGA Cooler
    November 16, 2009 - 11:46 AM PST
    .:: More News ::.

    RSSLatest Content
    Prolimatech Megahalems Rev. B CPU Cooler Review
    SilverStone Nightjar 400 W Power Supply Review
    Ultra X4 500 W Power Supply Review
    Seagate Barracuda XT 2 TB Hard Disk Drive Review
    Nintendo Wii Fit Plus Review
    AMD ATI Chips Comparison Table
    nVidia Chips Comparison Table
    Gigabyte G41M-ES2L Motherboard
    Netflix on Playstation 3 Review
    CM Storm Sentinel Advance Mouse Review
    Titan Skalli CPU Cooler Review
    Nexus RX-6300 630 W Power Supply Review
    Gigabyte P55-UD6 Motherboard
    Nintendo Wii Review
    SilverStone Grandia GD04 Case Review

    Our Most Popular Articles
    Maximum CPU Temperature
    1,079,866 views
    How to Find Out Your Motherboard Manufacturer and Model
    708,777 views
    nVidia Chips Comparison Table
    680,878 views
    Connecting Two PCs Using a USB-USB Cable
    595,293 views
    How To Correctly Apply Thermal Grease
    563,835 views
    AMD ATI Chips Comparison Table
    561,552 views
    ATI Radeon X1300 Pro Review
    488,444 views
    ATI Radeon X1600 XT Review
    477,546 views
    How To Perform a BIOS Upgrade
    395,631 views
    Sempron vs. Athlon XP
    338,990 views

    Latest Threads in Our Forums
    Gigabyte Intros Socket AM3 Motherboards with USB 3.0/SATA-600
    by Hardware Secrets Team
    Prolimatech Megahalems Rev. B CPU Cooler Review
    by Hardware Secrets Team
    SilverStone Nightjar 400 W Power Supply Review
    by Hardware Secrets Team
    Imation Announces WUSB External Hard Drive
    by Hardware Secrets Team
    what mobo do i need? pls help!
    by Merman
    Getting A Hard Copy
    by Olle P
    Am I Making The Right Choice?
    by Olle P
    Upgrade now or wait?
    by Desert Fox
    DVD ripper/mp4 joiner
    by rektech
    Dell Inspiron 6000 Powers but will not boot...
    by Merman
    .:: Visit Our Forums ::.


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