OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 12:11 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GUI Development
PostPosted: Sat Apr 16, 2005 11:05 am 
Hi,

My operating system is a single user, multi tasking kernel, and I would like to make a graphics environment for that, like X. I am stuck on following, could not determine what to do:

How can that application run in v86 mode?
How can that application get permission from OS to use privileged instructions to change video mode, and access to the graphics card?

I know how to switch to v86 mode, from kernel. However, this is a user application, running in user space, and I could not figure out how can I run that application in v86 mode, or give it permission to access graphics card stuff.

I would be very happy, if you enlighten me about these.

Jason


Top
  
 
 Post subject: Re:GUI Development
PostPosted: Sat Apr 16, 2005 11:27 am 
This all depends on the design, assuming you want it to be reasonably secure and safe from random crashes then you will want to not give it direct access like that.

The general mainstream idea is that the server talks to a driver and the driver does the actual work (change modes, copy buffers onto the video RAM), again this depends on your design.


Top
  
 
 Post subject: Re:GUI Development
PostPosted: Sat Apr 16, 2005 11:46 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
you usually won't switch modes within an application. Either your application runs in protected mode, or it runs in virtual mode. The best thing to do is probably to have the video mode selected by some kernel service using the video driver, and the application should be happy with that mode or complain to the user.

Once the video mode is enabled, you could have the video memory mapped into the application's space so that it can do direct rendering. You could also (alternatively) have some special application (the GUI server) mapping the video memory and interpreting commands from other applications (based on a "window" context, for instance)

_________________
Image May the source be with you.


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: SemrushBot [Bot] and 18 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