linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Paging and system calls
@ 2003-04-28 12:48 Kasim Sinan Yildirim
  2003-04-28 13:14 ` Jamie Lokier
  0 siblings, 1 reply; 2+ messages in thread
From: Kasim Sinan Yildirim @ 2003-04-28 12:48 UTC (permalink / raw)
  To: linux-newbie, linux-kernel

Hi,

I am working on a small kernel and i am examining the source code of the 
linux.

Since every task has its own page tables, when task switching occurs,  the 
cr3 field of the TSS is put to the cr3 register which is page directory base 
register.

İn my operating system, when a system call occurs, the user level code jumps 
to system level code by changing its selectors to KernelCS and KernelDS. But 
at this point, the cr3 register still points to the page directory of the 
user process. So, the actual code that is pointed by kernel level page 
directory is not equal to the user level page directory entry. As a result , 
the system fails.

How this problem is solved in Linux? Have you got any solution to my problem?

Thanks...



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-28 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-28 12:48 Paging and system calls Kasim Sinan Yildirim
2003-04-28 13:14 ` Jamie Lokier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).