Re: [PATCH 1/1] i386 Encapsulate copying of pgd entries

From: Chris Wright
Date: Fri Aug 05 2005 - 20:17:03 EST


* zach@xxxxxxxxxx (zach@xxxxxxxxxx) wrote:
> + memset(pgd, 0, USER_PTRS_PER_PGD*sizeof(pgd_t));
> if (PTRS_PER_PMD == 1)
> spin_lock_irqsave(&pgd_lock, flags);
>
> - memcpy((pgd_t *)pgd + USER_PTRS_PER_PGD,
> + clone_pgd_range((pgd_t *)pgd + USER_PTRS_PER_PGD,
> swapper_pg_dir + USER_PTRS_PER_PGD,
> - (PTRS_PER_PGD - USER_PTRS_PER_PGD) * sizeof(pgd_t));
> -
> + KERNEL_PGD_PTRS);
> if (PTRS_PER_PMD > 1)
> return;
>
> pgd_list_add(pgd);
> spin_unlock_irqrestore(&pgd_lock, flags);
> - memset(pgd, 0, USER_PTRS_PER_PGD*sizeof(pgd_t));

Why memset was never done on PAE?

thanks,
-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/