[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.35 and 1.36

version 1.35, 2000/05/31 15:03:54 version 1.36, 2000/05/31 15:29:42
Line 404  pool_init(pp, size, align, ioff, flags, 
Line 404  pool_init(pp, size, align, ioff, flags, 
         /*          /*
          * Check arguments and construct default values.           * Check arguments and construct default values.
          */           */
         if (!powerof2(pagesz) || pagesz > PAGE_SIZE)          if (!powerof2(pagesz))
                 panic("pool_init: page size invalid (%lx)\n", (u_long)pagesz);                  panic("pool_init: page size invalid (%lx)\n", (u_long)pagesz);
   
         if (alloc == NULL && release == NULL) {          if (alloc == NULL && release == NULL) {
Line 1025  pool_prime_page(pp, storage)
Line 1025  pool_prime_page(pp, storage)
         unsigned int ioff = pp->pr_itemoffset;          unsigned int ioff = pp->pr_itemoffset;
         int s, n;          int s, n;
   
           if (((u_long)cp & (pp->pr_pagesz - 1)) != 0)
                   panic("pool_prime_page: %s: unaligned page", pp->pr_wchan);
   
         if ((pp->pr_roflags & PR_PHINPAGE) != 0) {          if ((pp->pr_roflags & PR_PHINPAGE) != 0) {
                 ph = (struct pool_item_header *)(cp + pp->pr_phoffset);                  ph = (struct pool_item_header *)(cp + pp->pr_phoffset);
         } else {          } else {

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

CVSweb <webmaster@jp.NetBSD.org>