do not flush TB when l1_map is uninitialized. this fixes issue #280, #284

This commit is contained in:
Nguyen Anh Quynh 2015-12-12 03:09:38 +08:00
parent 9b6701dc4d
commit f21fa3d966

View file

@ -807,6 +807,9 @@ static void page_flush_tb(struct uc_struct *uc)
{
int i;
if (uc->l1_map == NULL)
return;
for (i = 0; i < V_L1_SIZE; i++) {
page_flush_tb_1(V_L1_SHIFT / V_L2_BITS - 1, uc->l1_map + i);
}