x86 mem init: fix clearing of init_pt

memset(init_pt...) had the wrong size.

Change-Id: Idb5d0d53b3c70ee4a16a101dd265d0854cfd3b72
This commit is contained in:
Dominique Martinet
2018-07-17 18:03:33 +09:00
committed by Dominique Martinet
parent a1b50051ed
commit 79e5026f01

View File

@@ -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);