OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: implementing servers for a microkernel
PostPosted: Tue May 11, 2021 12:03 pm 
Offline
Member
Member
User avatar

Joined: Sun Mar 21, 2021 1:09 pm
Posts: 38
Location: current location
Hello, I have question: How does the Kernel call the servers in a micro-kernel? If i understand the Concept, they are not inside the kernel binary. Now how do they run in kernel-mode if they are not a kernel and how are they invoked? Thanks a lot in advance and sorry for my lack in knowledge!

_________________
iustitiae iniustos iudicat


Top
 Profile  
 
 Post subject: Re: implementing servers for a microkernel
PostPosted: Tue May 11, 2021 12:08 pm 
Offline
Member
Member
User avatar

Joined: Sun Oct 11, 2020 9:46 pm
Posts: 363
Location: United States
Running in "kernel mode" means running in ring 0. Any program can run in ring 0 if the kernel allows it to. A program does not need to be inside the kernel to run in "kernel mode".

Also, how the kernel interfaces with the servers is completely up to you. A design I would think of is one where servers must register with the kernel, and the kernel recognizes servers for their functions and redirects related operations to the servers.

_________________
Skylight: https://github.com/austanss/skylight

I make stupid mistakes and my vision is terrible. Not a good combination.

NOTE: Never respond to my posts with "it's too hard".


Top
 Profile  
 
 Post subject: Re: implementing servers for a microkernel
PostPosted: Tue May 11, 2021 12:40 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
In a microkernel, servers run in user mode to provide better security. As far as communication goes, the kernel could simply send a message to the servers. That is my plan (whenever I start coding it :) ).

_________________
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg


Top
 Profile  
 
 Post subject: Re: implementing servers for a microkernel
PostPosted: Wed May 12, 2021 6:34 am 
Offline
Member
Member
User avatar

Joined: Sun Mar 21, 2021 1:09 pm
Posts: 38
Location: current location
thanks for clearing my misconception about ring 0 and for your reply! :)

_________________
iustitiae iniustos iudicat


Top
 Profile  
 
 Post subject: Re: implementing servers for a microkernel
PostPosted: Wed May 12, 2021 7:04 am 
Offline
Member
Member

Joined: Wed Oct 01, 2008 1:55 pm
Posts: 3192
I think a general message function is too slow and limited for a microkernel implementation, so I will build a custom interface for my user space file system servers.

It will build on a set of useful primitives, like a block object that can safely be shared in different address spaces without an advanced VMM implementation. I also communicate data through physical addresses rather than extensive use of memory mapping.


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

All times are UTC - 6 hours


Who is online

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