git: kernel - Fix rman_make_alignment_flags()

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Dec 18 08:29:00 PST 2019


commit bc2770d0858d239e57ca24a12d6b038dae63fb71
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Dec 18 08:27:23 2019 -0800

    kernel - Fix rman_make_alignment_flags()
    
    * Fix rman_make_alignment_flags() to work properly up to 2^63.
      Remove assumption about being able to shift a 32-bit integer
      by 32, this is not hardware-portable.
    
    * Note that this function is only used by ancient pccard code
    
    Reported-by: swildner

Summary of changes:
 sys/kern/subr_rman.c | 28 +++++++++++++++++-----------
 sys/sys/rman.h       |  2 +-
 2 files changed, 18 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bc2770d0858d239e57ca24a12d6b038dae63fb71


-- 
DragonFly BSD source repository


More information about the Commits mailing list