[BACK]Return to subr_pool.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/subr_pool.c between version 1.101.2.8 and 1.101.2.9

version 1.101.2.8, 2008/01/21 09:46:20 version 1.101.2.9, 2008/02/04 09:24:16
Line 1442  pool_prime_page(struct pool *pp, void *s
Line 1442  pool_prime_page(struct pool *pp, void *s
   
 #ifdef DIAGNOSTIC  #ifdef DIAGNOSTIC
         if ((pp->pr_roflags & PR_NOALIGN) == 0 &&          if ((pp->pr_roflags & PR_NOALIGN) == 0 &&
             ((uintptr_t)cp & (pp->pr_alloc->pa_pagesz - 1)) != 0)              ((uintptr_t)cp & (align - 1)) != 0)
                 panic("pool_prime_page: %s: unaligned page", pp->pr_wchan);                  panic("pool_prime_page: %s: unaligned page", pp->pr_wchan);
 #endif  #endif
   
Line 2534  pool_cache_get_paddr(pool_cache_t pc, in
Line 2534  pool_cache_get_paddr(pool_cache_t pc, in
                         object = pcg->pcg_objects[--pcg->pcg_avail].pcgo_va;                          object = pcg->pcg_objects[--pcg->pcg_avail].pcgo_va;
                         if (pap != NULL)                          if (pap != NULL)
                                 *pap = pcg->pcg_objects[pcg->pcg_avail].pcgo_pa;                                  *pap = pcg->pcg_objects[pcg->pcg_avail].pcgo_pa;
   #if defined(DIAGNOSTIC)
                         pcg->pcg_objects[pcg->pcg_avail].pcgo_va = NULL;                          pcg->pcg_objects[pcg->pcg_avail].pcgo_va = NULL;
   #endif /* defined(DIAGNOSTIC) */
                         KASSERT(pcg->pcg_avail <= pcg->pcg_size);                          KASSERT(pcg->pcg_avail <= pcg->pcg_size);
                         KASSERT(object != NULL);                          KASSERT(object != NULL);
                         cc->cc_hits++;                          cc->cc_hits++;

Legend:
Removed from v.1.101.2.8  
changed lines
  Added in v.1.101.2.9

CVSweb <webmaster@jp.NetBSD.org>