UP kernel crashes

Matthew Dillon dillon at apollo.backplane.com
Sun May 11 10:22:42 PDT 2008


: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 at backplane.com>





More information about the Bugs mailing list