What is A20

Source: Internet
Author: User

In Unix boot loader, some code segments are used to open A20 at the beginning. What is A20? Why not enable it by default, but enable it every time the system starts?

It turns out to be a historical computer problem. At 8088, the computer only has 20 address lines, so it can only address the range of 1 MB. PC usually uses two 16-bit registers for addressing, one memory selector and one memory offset, that is, selector: offset. The calculated address is selector * 16 + offset. In this way, the maximum address is FFFF: FFFF, that is, 0x10FFEF, but this exceeds the addressing range of 20 address lines 1 M, therefore, 8088 automatically sets the part greater than 1 MB to 0, for example, 0x10FFEF wrap to 0x00FFEF, equivalent to 1 M modulo.

In the era of 80286, the PC already has 24 address lines, but in order to backward compatibility, 80286 is designed to maintain the same behavior as 8088 in real mode. However, in the final 286 case, when addressing 0x100000 to 0x10FFEF in real mode, there is actually no remainder on 1 M, instead, the memory between 0x100000 and 0x10FFEF is actually accessed. To solve this problem, IBM invented a switch to enable or disable 0x100000 address bits. In real mode, turn off 0x100000 bits. Even if the 21st root address line is invalid, enable 0x100000 bits before entering the protection mode. Specifically, the keyboard controller idle line is used to control one and the door. This signal is called A20.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.