git: boot/efi: Switch from HandleProtocol() to OpenProtocol().

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Aug 9 03:15:15 PDT 2020


commit a4b368a6d1258ae9150a3923d1b3af12be34e731
Author: Sascha Wildner <saw at online.de>
Date:   Sun Aug 9 12:06:53 2020 +0200

    boot/efi: Switch from HandleProtocol() to OpenProtocol().
    
    HandleProtocol() is deprecated.
    
    Bring in and use FreeBSD's OpenProtocolByHandle() helper function (which
    is like the UEFI Spec's example) and generally reduce differences with
    FreeBSD a bit more.
    
    Taken-from: FreeBSD

Summary of changes:
 sys/boot/efi/boot1/Makefile                   |  7 +++++--
 sys/boot/efi/boot1/boot1.c                    | 13 +++++++------
 sys/boot/efi/include/efilib.h                 |  2 ++
 sys/boot/efi/libefi/efinet.c                  |  7 +++----
 sys/boot/efi/libefi/efipart.c                 | 13 ++++++-------
 sys/boot/efi/libefi/libefi.c                  |  9 ++++++++-
 sys/boot/efi/loader/arch/x86_64/framebuffer.c |  3 ++-
 sys/boot/efi/loader/main.c                    |  9 ++++-----
 8 files changed, 37 insertions(+), 26 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list