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




Recommended Book
The Winn L. Rosch Hardware Bible (6th Edition)
By Winn L Rosch
Que
Price: $0.94

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 AMD Athlon™ 64 X2 6000+, 3.0 GHz (ADX6000CZBOX) Boxed Processor $
Newegg.com: $92.00 ZipZoomfly.com: $92.00
eBay: $145.00 CompUSA.com: $99.99
TigerDirect.com: $99.99 Hpshopping: $441.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 Deals
    AMD Athlon 64 3500+, 2.2 GHz (ada3500dik4b) OEM / Unboxed Processor


    ZipZoomfly.com: $59.99 CompuVest: $42.99
    Zappos: $826.00 Hpshopping: $441.99
    AMD Athlon™ XP 2800+, 2.8 GHz (AXDA2800BOX) Retail Processor


    ZipZoomfly.com: $106.99 Circuitcity: $549.99
    Compusa: $599.99 Riverton Studios: $793.00
    Bestbuy: $579.99 Amazon: $998.57
    AMD Athlon™ 64 3800 3800+, 2 GHz AMD Processor in a Box (PIB)


    Server Supply: $135.00 Amazon: $103.39
    Zappos: $826.00 Hpshopping: $441.99
    AMD Athlon™ 64 3000+, 2.0 GHz (ada3000box) AMD Processor in a Box (PIB)


    ZipZoomfly.com: $105.00 Hpshopping: $441.99
    Zappos: $826.00
    Intel Core™2 Quad Q6600, 2.40 GHz (BX80562Q6600) Boxed Processor


    CompUSA.com: $189.99 Dell: $329.99
    Circuit City: $279.99 ZipZoomfly.com: $188.50
    TigerDirect.com: $189.99

    RSSLatest News
    Patriot Launches SO-DIMM DDR3-2000
    September 5, 2008 - 7:28 AM PST
    Kingston Unveils HyperX SO-DIMM Memory Kit
    September 4, 2008 - 10:59 AM PST
    Thermaltake Launches V9 Case Series
    September 3, 2008 - 7:54 AM PST
    Sigma Launches 1,000 W Power Supply
    September 2, 2008 - 7:55 AM PST
    Intel Launches New Processors
    September 1, 2008 - 11:16 AM PST
    Scythe Launches Kaze Maru Case Fan
    September 1, 2008 - 10:24 AM PST
    Lian Li Launches Silent Force Power Supply Series
    August 29, 2008 - 9:24 AM PST
    New Thermaltake Power Supplies
    August 28, 2008 - 11:43 AM PST
    Sparkle and MSI Launch GeForce 9400 GT
    August 28, 2008 - 11:13 AM PST
    NZXT Unveils Whisper Full Tower Case
    August 28, 2008 - 10:39 AM PST
    .:: More News ::.

    RSSLatest Content
    Everything You Need to Know About the CPU C-States Power Saving Modes
    AMD ATI Chips Comparison Table
    nVidia Chips Comparison Table
    Inside Intel Nehalem Microarchitecture
    OCZ Elixir Gaming Keyboard Review
    Everything You Need to Know About The QuickPath Interconnect (QPI)
    Me and Woz
    Introduction to Wireless USB (WUSB)
    Nikon Coolpix S600 Camera Review
    IDF Fall 2008: Opening Keynote
    Thecus N5200 NAS Review
    ECS GeForce 9800 GTX+ Hydra Video Card Review
    320 GB Hard Disk Drive Round-Up
    Razer Destructor Mouse Pad Review
    Sapphire HD 4870 X2 Video Card Review

    Our Most Popular Articles
    Maximum CPU Temperature
    772,090 views
    nVidia Chips Comparison Table
    480,274 views
    AMD ATI Chips Comparison Table
    425,614 views
    ATI Radeon X1300 Pro Review
    413,844 views
    ATI Radeon X1600 XT Review
    408,611 views
    How to Find Out Your Motherboard Manufacturer and Model
    385,056 views
    Connecting Two PCs Using a USB-USB Cable
    347,727 views
    How To Correctly Apply Thermal Grease
    333,034 views
    Sempron vs. Athlon XP
    280,103 views
    Sempron 3400+ Review
    270,304 views

    Latest Threads in Our Forums
    Review - Logitech X530 (5.1)
    by tomahawk 1705
    Slipstreaming SP3
    by BedCommando
    powercolor x1650 pro agp problem
    by jedsky
    Building PC for Audio.
    by Wall'E
    What configuration is better??
    by Gabriel Torres
    Upgrading to dual core
    by Gabriel Torres
    Patriot Launches SO-DIMM DDR3-2000
    by Hardware Secrets Team
    overclocking e8400 problem
    by andybarrel
    Everything You Need to Know About the CPU C-States Power Saving Modes
    by Hardware Secrets Team
    Cooler Master Cosmos S Case Review
    by Retratserif
    .:: Visit Our Forums ::.

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