OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: are 2 sets of segments needed?
PostPosted: Thu Sep 09, 2004 3:11 am 
Hi

I was wondering, in a protected mode os there are at least 4 segments, flat of course over the 4GB address space.

Why not just have the supervisor mode segments used for user mode code with all protection using paging.

Would it muck things up?

thanks
srg


Top
  
 
 Post subject: Re:are 2 sets of segments needed?
PostPosted: Thu Sep 09, 2004 4:19 am 
Someone correct me if I'm wrong, but AFAIK the privilege level of the current code segment defines the current privilege level. Thus, if you only have supervisor code segments, you will always be running code in supervisor mode. So, page protection attributes will be ignored - supervisor code can read and write all pages.


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

All times are UTC - 6 hours


Who is online

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