Re: module registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 24, 2007 at 06:13:50PM +0100, ninjaboy wrote:
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?

CR3 is a register on x86 and x86-64 chips, that points to the page
directory (highest level page table) for the current process.

--
-vs

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux