OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 1:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: cleaning out memory areas
PostPosted: Wed Sep 15, 2004 4:17 am 
Offline
Member
Member

Joined: Wed Oct 18, 2006 11:59 am
Posts: 1600
Location: Vienna/Austria
After a few days of hard debugging, I 've found one source of obscure bugs - maybe it is the solution to get rid of a vast majority of them - anyways, I gonna tell you something crucial and to some of you maybe logical, be it due to experience be it due to education:

Clean out Page Directories and Page Tables! Don't rely on only zeroing the dealt out memory areas.

Say: zero out page directory before mapping in the kernel land (simply put in the PDE's at the corresponding places).
Zero out each page table ere you enter any pages. Your MMU might find a "valid" page and use it - and this might not be what you want.

To say it in short:

Zero out all management tables too.

Page Directory and Page Tables.

I just needed to put this here. It has caused me way a lot of headache and wondering: why does it work on this PC and not on any other??!! *damn*

Hope, you can benefit from my atrocious moron-ness.

_________________
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image


Top
 Profile  
 
 Post subject: Re:cleaning out memory areas
PostPosted: Wed Sep 15, 2004 7:59 am 
can u tell the configuration of these PCs.
have you tested it on tow PCs that have the same CPUs or not ?


Top
  
 
 Post subject: Re:cleaning out memory areas
PostPosted: Thu Sep 16, 2004 3:31 am 
Offline
Member
Member

Joined: Wed Oct 18, 2006 11:59 am
Posts: 1600
Location: Vienna/Austria
My three machines at home:

amd athlon xp 1700+, asus mobo,512 mb memory
amd thunderbird 750 mhz, abit mobo,128 mb memory
--> on these two it worked without cleaning out anything - albeit obscure bugs kept appearing. Dito in VMWare.

Toshiba Satellite 1700/300 laptop with Intel Celeron 650 MHZ cpu and 128 mb memory --> on this one it refused to work without cleaning out. With cleaning and zeroing, it works like a charm on this stubborn machine - and the obscure bugs seem to be gone pour la plus-part.

With a HP-Computer (Asus Mobo, Intel Pention III 500 mhz,64 MB memory) it worked also - without cleaning out - but now, with the zeroing and cleaning stuff - much better.

Hope this helps

_________________
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], FrankRay78, Google [Bot] and 62 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