Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 02:27:39 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28515 for review
Message-ID:  <200304080927.h389RdsC015232@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28515

Change 28515 by peter@peter_daintree on 2003/04/08 02:27:28

	fork works better when the entire address space isn't read-only

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/pmap.c#20 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/pmap.c#20 (text+ko) ====

@@ -1084,9 +1084,9 @@
 	for (i = 0; i < NPGPTD; i++) {
 		pa = VM_PAGE_TO_PHYS(ptdpg[i]);
 		pmap->pm_pdir[PTDPTDI + i] = pa | PG_V | PG_RW | PG_A | PG_M;
-		pmap->pm_pdp[i] = pa | PG_V;
+		pmap->pm_pdp[i] = pa | PG_RW | PG_V;
 	}
-	pmap->pm_pml4[0] = VM_PAGE_TO_PHYS(pdppg) | PG_V;
+	pmap->pm_pml4[0] = VM_PAGE_TO_PHYS(pdppg) | PG_RW | PG_V;
 
 	pmap->pm_active = 0;
 	TAILQ_INIT(&pmap->pm_pvlist);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304080927.h389RdsC015232>