OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 12:57 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Opening the A20 gate
PostPosted: Sat Apr 06, 2002 5:15 pm 
Because my OS is going to be in Protected Mode, I'm going to have to open the A20 gate. Isn't it to use more than 1 meg of memory?

Anyway, can somebody tell me how to do it? Not just giving me code, but explaining what is needed and what is done and why and how. Thanks!


Top
  
 
 Post subject: Re:Opening the A20 gate
PostPosted: Sun Apr 07, 2002 3:55 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
There is code in the OS faq for doing it
http://www.mega-tokyo.com/os

_________________
-- Stu --


Top
 Profile  
 
 Post subject: Re:Opening the A20 gate
PostPosted: Sun Apr 07, 2002 5:32 am 
In real mode, you can only access memory below 1 Meg, in protected mode, you can access up to 4Gigs, when you have enabled the a20 gate..
a20 is controlled thru the keyboard controller..
A very good tutorial can be found at:

http://www.win.tue.nl/~aeb/linux/kbd/A20.html


Top
  
 
 Post subject: Re:Opening the A20 gate
PostPosted: Sun Apr 07, 2002 8:47 am 
Does that mean you HAVE to be in Protected Mode when opening the A20 gate, or can you be in Real Mode to open it?


Top
  
 
 Post subject: Re:Opening the A20 gate
PostPosted: Sun Apr 07, 2002 9:10 am 
You can open it in real mode, then you can access even 64kb - 16 bytes more ram than 1MB, but some programs crash if you don't close it again (no problem if you are not running dos programs at all).


Top
  
 
 Post subject: Re:Opening the A20 gate
PostPosted: Sun Apr 07, 2002 9:12 am 
Well, what I'm going to do is just open the A20 gate (in my bootstrap) and then choose the file system and then load the kernel, so I don't have to worry about opening other programs and causing the system to crash. Thanks!


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 95 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group