GDT

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.
slacker

Re:GDT

Post by slacker »

does it really matter if the accessed bit is set to 1 when i set up my GDT?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:GDT

Post by Pype.Clicker »

no. that's a write-only bit for the cpu. It will never read or use its value. It just fills it with a 1 when it accesses the segment so that the software can keep track of segment useage and optionnally implement segments-based virtual memory (swapping out a whole code segment from memory when it's no longer used).

no need to say that paging-based virtual memory has been preferred by OS designers.
slacker

Re:GDT

Post by slacker »

what does the available for system software bit do?
Tim

Re:GDT

Post by Tim »

Nothing. It's available for use by system software (hence the name). You can use it for whatever you want.
Post Reply