Seems phys_to_page/page_to_phys macros are fixed in mm0

This commit is contained in:
Bahadir Balban
2009-08-09 17:59:32 +03:00
parent 02a3f1ac91
commit aa71161a04
3 changed files with 10 additions and 5 deletions

View File

@@ -131,6 +131,9 @@ void init_physmem_secondary(struct initdata *initdata, struct membank *membank)
/* Set global page array to this bank's array */
page_array = membank[0].page_array;
/* Test that page/phys macros work */
BUG_ON(phys_to_page(page_to_phys(&page_array[5])) != &page_array[5])
}