FreeBSD Memory Management questions ?

Aziz Kezzou french.linuxian at gmail.com
Tue Jun 14 08:21:47 GMT 2005


Hi all,
I have two questions concerning FreeBSD Memory management :

1 - Right now to access the memory address space of a user process
from kernel mode, I only have to set, on x86 systems, the register CR3
to the right value.  How can I do that on other architectures ? is
there an architecture-independant way of doing that ?

2- I have noticed that while in kernel mode the value of CR3 is equal
to that of the user process beeing interrupted. Doesn't the kernel
supposed to have its "own" page-directory, i.e it's own CR3  value ?
or is kernel virtual address resolution does  not go through CR3 at
all ?
 
Thanks for your help,
-aziz


More information about the freebsd-net mailing list