HomeFreeBSD

kboot: Use is_linux_error to check mmap return error

Description

kboot: Use is_linux_error to check mmap return error

Rather than checking against the (incorrect) -511, use the
is_linux_error() function to check to see if host_mmap failed.

Sponsored by: Netflix

(cherry picked from commit d75524b3fe21752b233f66ae8e9d6450d507f75c)

Details

Provenance
impAuthored on Mar 11 2024, 8:15 PM
Parents
rG0bca0de6b676: kboot: Print UEFI memory map
Branches
Unknown
Tags
Unknown