x86 mem init: fix clearing of init_pt
memset(init_pt...) had the wrong size. Change-Id: Idb5d0d53b3c70ee4a16a101dd265d0854cfd3b72
This commit is contained in:
committed by
Dominique Martinet
parent
a1b50051ed
commit
79e5026f01
@@ -2624,7 +2624,7 @@ void init_page_table(void)
|
||||
init_pt = ihk_mc_alloc_pages(1, IHK_MC_AP_CRITICAL);
|
||||
ihk_mc_spinlock_init(&init_pt_lock);
|
||||
|
||||
memset(init_pt, 0, sizeof(PAGE_SIZE));
|
||||
memset(init_pt, 0, sizeof(*init_pt));
|
||||
|
||||
/* Normal memory area */
|
||||
init_normal_area(init_pt);
|
||||
|
||||
Reference in New Issue
Block a user