cvs commit: src/sys/vm uma.h uma_core.c

Robert Watson rwatson at
Sun Feb 11 20:13:54 UTC 2007

rwatson     2007-02-11 20:13:52 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               uma.h uma_core.c 
  Add uma_set_align() interface, which will be called at most once during
  boot by MD code to indicated detected alignment preference.  Rather than
  cache alignment being encoded in UMA consumers by defining a global
  alignment value of (16 - 1) in UMA_ALIGN_CACHE, UMA_ALIGN_CACHE is now
  a special value (-1) that causes UMA to look at registered alignment.  If
  no preferred alignment has been selected by MD code, a default alignment
  of (16 - 1) will be used.
  Currently, no hardware platforms specify alignment; architecture
  maintainers will need to modify MD startup code to specify an alignment
  if desired.  This must occur before initialization of UMA so that all UMA
  zones pick up the requested alignment.
  Reviewed by:    jeff, alc
  Submitted by:   attilio
  Revision  Changes    Path
  1.31      +13 -1     src/sys/vm/uma.h
  1.145     +13 -1     src/sys/vm/uma_core.c

More information about the cvs-src mailing list