Re: x86 pages, page tables, and page table entries

2008-01-23 Thread Thomas Petazzoni
Le Tue, 22 Jan 2008 10:31:14 +0100, "Vegard Nossum" <[EMAIL PROTECTED]> a écrit : > It allocates two pages and prints out the virtual address of the page > itself, then the pte_t* of that address. When run, I get this: > > pte for c7802000 = c0438c78 > pte for c7803000 = c0438c78 > > So it seems

Re: x86 pages, page tables, and page table entries

2008-01-22 Thread Vegard Nossum
On Jan 22, 2008 10:31 AM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > On Jan 21, 2008 11:43 PM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am experiencing something strange about pages and ptes on x86. I am > > calling alloc_pages() with order = 1 (should be 2 pages). This returns >

RE: x86 pages, page tables, and page table entries

2008-01-22 Thread Kathiresan, Lekshmanan
Hi All, I want to print current date and time in a kernel module. 1) do we have direct functions that we could use in kernel? 2) Can get time from epoch using gettimeofday? So, how do I convert it to the current date and time string. Is there something similar to userspace

Re: x86 pages, page tables, and page table entries

2008-01-22 Thread Vegard Nossum
On Jan 21, 2008 11:43 PM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > Hi, > > I am experiencing something strange about pages and ptes on x86. I am > calling alloc_pages() with order = 1 (should be 2 pages). This returns > a struct page with virtual address c780 (returned by > page_address()). N

Re: x86 pages, page tables, and page table entries

2008-01-22 Thread Mulyadi Santosa
Hi.. On Jan 22, 2008 5:43 AM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > Hi, > > I am experiencing something strange about pages and ptes on x86. I am > calling alloc_pages() with order = 1 (should be 2 pages). This returns > a struct page with virtual address c780 (returned by > page_address(

Re: x86 pages, page tables, and page table entries

2008-01-21 Thread Thomas Petazzoni
Hi, Le Mon, 21 Jan 2008 23:43:47 +0100, "Vegard Nossum" <[EMAIL PROTECTED]> a écrit : > I am experiencing something strange about pages and ptes on x86. I am > calling alloc_pages() with order = 1 (should be 2 pages). This returns > a struct page with virtual address c780 (returned by > page_

x86 pages, page tables, and page table entries

2008-01-21 Thread Vegard Nossum
Hi, I am experiencing something strange about pages and ptes on x86. I am calling alloc_pages() with order = 1 (should be 2 pages). This returns a struct page with virtual address c780 (returned by page_address()). Now I call lookup_address() on the same address, and the pte is located at c043