Why do we need the A20 gate?
Do we allso need it in protected and long mode?
from www.brokenthorn.com
In the previus tutorial, we looked at how to switch the processor into a 32 bit mode. We also learned how we can access up to 4 GB of memory.
As i understand this we have access to 4gb of memory as soon as we get to protected mode, if this is correct, we then only need to enable the A20 gate if we need to access more that 1mb of memory while in real mode, but surely 1mb of memory is more that enough to get to protected mode, so why do we need to bother?the PC boots into real mode, which has the limitation of 16 bit registers. And, hence, 16 bit segment addressing. This limits the amount of memory you can access in real mode. Because of this, we still cannot access even up to 1 GB of memory yet. Heck, we cannot even go passed the 1 MB barrier yet! What to do? We have to enable the 20th address line.
Im sure you realize by now that im no expert on the subject, but still i would very much appreciate some clarification.
Thanks.


