[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.74.2.1 and 1.74.2.2

version 1.74.2.1, 2002/03/12 07:53:25 version 1.74.2.2, 2002/03/12 15:54:04
Line 425  pool_init(struct pool *pp, size_t size, 
Line 425  pool_init(struct pool *pp, size_t size, 
         if (size < sizeof(struct pool_item))          if (size < sizeof(struct pool_item))
                 size = sizeof(struct pool_item);                  size = sizeof(struct pool_item);
   
         size = ALIGN(size);          size = roundup(size, align);
 #ifdef DIAGNOSTIC  #ifdef DIAGNOSTIC
         if (size > palloc->pa_pagesz)          if (size > palloc->pa_pagesz)
                 panic("pool_init: pool item size (%lu) too large",                  panic("pool_init: pool item size (%lu) too large",
Line 1093  pool_prime_page(struct pool *pp, caddr_t
Line 1093  pool_prime_page(struct pool *pp, caddr_t
         caddr_t cp = storage;          caddr_t cp = storage;
         const unsigned int align = pp->pr_align;          const unsigned int align = pp->pr_align;
         const unsigned int ioff = pp->pr_itemoffset;          const unsigned int ioff = pp->pr_itemoffset;
         const unsigned int alignsize = roundup(pp->pr_size, align);  
         int n;          int n;
   
 #ifdef DIAGNOSTIC  #ifdef DIAGNOSTIC
Line 1145  pool_prime_page(struct pool *pp, caddr_t
Line 1144  pool_prime_page(struct pool *pp, caddr_t
 #ifdef DIAGNOSTIC  #ifdef DIAGNOSTIC
                 pi->pi_magic = PI_MAGIC;                  pi->pi_magic = PI_MAGIC;
 #endif  #endif
                 cp = (caddr_t)(cp + alignsize);                  cp = (caddr_t)(cp + pp->pr_size);
   
                 KASSERT((((vaddr_t)cp + ioff) & (align - 1)) == 0);                  KASSERT((((vaddr_t)cp + ioff) & (align - 1)) == 0);
         }          }

Legend:
Removed from v.1.74.2.1  
changed lines
  Added in v.1.74.2.2

CVSweb <webmaster@jp.NetBSD.org>