Fix for pmap.c
Randall Stewart
rrs at lakerest.net
Fri Apr 30 17:34:48 UTC 2010
JC:
Thats definitely a bug and would only effect those that have
>512Meg of memory.
I have committed for you in rev 207441
R
On Apr 30, 2010, at 9:48 AM, Jayachandran C. wrote:
> There seems to be a obvious bug in the current pmap.c, can you please
> review/apply the patch below.
>
> This seems to be the cause of the crashes I'm seeing in HEAD. I'm
> still
> testing with the patch, the buildworld I use will have to run a few
> more
> hours to be completely sure that this is the problem.
>
> JC.
>
>
> Index: sys/mips/mips/pmap.c
> ===================================================================
> --- sys/mips/mips/pmap.c (revision 207433)
> +++ sys/mips/mips/pmap.c (working copy)
> @@ -236,7 +236,7 @@
> sched_pin(); \
> va1 = sysm->base; \
> va2 = sysm->base + PAGE_SIZE; \
> - npte = mips_paddr_to_tlbpfn(phys2) | \
> + npte = mips_paddr_to_tlbpfn(phys1) | \
> PTE_RW | PTE_V | PTE_G | PTE_W | PTE_CACHE; \
> pte = pmap_pte(kernel_pmap, va1); \
> *pte = npte; \
>
------------------------------
Randall Stewart
803-317-4952 (cell)
803-345-0391(direct)
More information about the freebsd-mips
mailing list