RTC clock in kernel or user space

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.
Post Reply
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

RTC clock in kernel or user space

Post by os64dev »

Hi all,

currently i'm busy with the RTC clock and am wondering in what address space to put the handler in either user space or kernel space. I don't think the kernel needs to know about the clock and date but applications might. I've tested both locations and it works. The advantage of having it in application space means that there is no privilege transition and thus slightly faster.

what do you guys/girls think.

regards
Author of COBOS
User avatar
Phoenix
Posts: 12
Joined: Sat Nov 11, 2006 5:30 pm
Contact:

Post by Phoenix »

I think it should be in kernel space. Kernel space is already a shared section between process, but if you put it in user space, you probably need an extra shared&protected space.
Post Reply