Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Back out untested code



details:   https://anonhg.NetBSD.org/src/rev/b0abed6f55cf
branches:  sommerfeld_i386mp_1
changeset: 482394:b0abed6f55cf
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Fri May 11 15:54:35 2001 +0000

description:
Back out untested code

diffstat:

 sys/arch/i386/i386/pmap.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r d547c1578c51 -r b0abed6f55cf sys/arch/i386/i386/pmap.c
--- a/sys/arch/i386/i386/pmap.c Thu May 10 04:57:06 2001 +0000
+++ b/sys/arch/i386/i386/pmap.c Fri May 11 15:54:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.83.2.36 2001/05/10 04:57:06 thorpej Exp $   */
+/*     $NetBSD: pmap.c,v 1.83.2.37 2001/05/11 15:54:35 sommerfeld Exp $        */
 
 /*
  *
@@ -292,6 +292,7 @@
 
 struct pool pmap_tlb_shootdown_job_pool;
 int pj_nentries, pj_nbytes;
+void *pj_page;
 
 void   pmap_tlb_shootdown_q_drain __P((struct pmap_tlb_shootdown_q *));
 struct pmap_tlb_shootdown_job *pmap_tlb_shootdown_job_get
@@ -1123,9 +1124,13 @@
         */
        pj_nentries = pmap_tlb_shootdown_job_pool.pr_itemsperpage;
        pj_nbytes =  pmap_tlb_shootdown_job_pool.pr_pagesz;
-       printf("%d TLB shootdown pool entries; page size %d\n",
-           pj_nentries, pj_nbytes);
-       pool_prime(&pmap_tlb_shootdown_job_pool, pj_nentries);
+       printf("%d pool entries; page size %d\n", pj_nentries, pj_nbytes);
+       pj_page = (void *)uvm_km_alloc (kernel_map, pj_nbytes);
+       if (pj_page == NULL)
+               panic("pmap_init: pj_page");
+       pool_prime (&pmap_tlb_shootdown_job_pool, pj_nentries, pj_page);
+       pool_setlowat(&pmap_tlb_shootdown_job_pool, 0);
+       pool_sethiwat(&pmap_tlb_shootdown_job_pool, pj_nentries);
        pool_sethardlimit(&pmap_tlb_shootdown_job_pool, pj_nentries, 0, 0);
 
        /*



Home | Main Index | Thread Index | Old Index