mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 01:33:13 +01:00
Seems phys_to_page/page_to_phys macros are fixed in mm0
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user