DragonFly bugs List (threaded) for 2008-05
DragonFly BSD
DragonFly bugs List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: UP kernel crashes


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 11 May 2008 10:21:37 -0700 (PDT)

:Me too in a Qemu instance.
:
:The following patch should fix it (works fine here).
:
:Regards,
:
:   Michael
:
:Index: pmap.c
:===================================================================
:RCS file: /home/dcvs/src/sys/platform/pc32/i386/pmap.c,v
:retrieving revision 1.84
:diff -u -r1.84 pmap.c
:--- pmap.c	9 May 2008 07:24:46 -0000	1.84
:+++ pmap.c	11 May 2008 13:49:19 -0000
:@@ -2102,7 +2102,7 @@
:  		if (newpte & PG_RW)
:  			vm_page_flag_set(m, PG_WRITEABLE);
:  	}
:-	KKASSERT((newpte & VPTE_MANAGED) == 0 || m->flags & PG_MAPPED);
:+	KKASSERT((newpte & PG_MANAGED) == 0 || (m->flags & PG_MAPPED));
:  	pmap_inval_flush(&info);
:  }

    Nice catch!  Silly me, I was using a vkernel define in the real 
    kernel's pmap module :-)

    I've committed the fix.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]