Hi..
hi,
when I load a module and in this module there is:
unsigned long cr3;
asm("xor %%rbx, %%rbx\t\nmov %%cr3, %0" : "=b" (cr3));
what cr3 is? insmod in userspace or cr3 in kernel space?
That's a CPU register in x86 that points to effective page global
directory (PGD). Doesn't matter in kernel space or user space, cr3
should be the same. It is changed only in process switching.. assuming
your Linux setup doesn't use something like 4/4 VM split.
regards,
Mulyadi.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ