a20 gate

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
slacker

a20 gate

Post by slacker »

i have a question about the a20 gate. first of all if i choose to enable it through the keyboard controller why is 0xDF the "special code" for enabling that gate. second...if i want to have a backup method of enabling the gate and i dont want to check if the keyboard controller method worked or not...will the port 0x92 method mess up the a20 enabling if the first method is successful in enabling the a20 gate? thank you ppl. bye
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:a20 gate

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:51 pm, edited 1 time in total.
pini

Re:a20 gate

Post by pini »

I suggest you don't use the 0x92 port, because this is NOT a standard method on a x86 architecture dispite the fact that (some) systems support it.

You should use the keyboard controller instead :
First, you must wait until the keyboard controller is ready (read port 0x64 and check 2nd bit status), then you must send 0xD1 to the port 0x64 (this is the keyboard controller).
Then you must wait until the controller is ready (ie wait until it understand what you sent before) and then only you can send 0xDF to the port 0x60.
When this is done, the A-20 gate is opened
Post Reply