Error recovery fixes to mm0 and l4_map_helper

This commit is contained in:
Bahadir Balban
2009-11-18 10:55:53 +02:00
parent 452f177ce2
commit 51a12a507f
2 changed files with 14 additions and 4 deletions
+7 -3
View File
@@ -271,9 +271,13 @@ void init_physmem_secondary(struct membank *membank)
* Use free pages from the bank as
* the space for struct page array
*/
membank[0].page_array =
l4_map_helper((void *)membank[0].free,
pg_npages);
if (IS_ERR(membank[0].page_array =
l4_map_helper((void *)membank[0].free,
pg_npages))) {
printf("FATAL: Page array mapping failed. err=%d\n",
(int)membank[0].page_array);
BUG();
}
/* Update free memory left */
membank[0].free += pg_npages * PAGE_SIZE;