]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: create common set_currdev
authorWarner Losh <imp@FreeBSD.org>
Wed, 11 Jan 2023 22:14:28 +0000 (15:14 -0700)
committerWarner Losh <imp@FreeBSD.org>
Tue, 24 Jan 2023 21:49:46 +0000 (14:49 -0700)
commit7956ceec924a4ef9a9f97c11efe89a959a5b23db
tree67f1820eb2f9f378ad577c4fda03f46e4bb8a5d8
parent6c918e0bfaf8268e42a4b612c3f218e1abf97a2b
stand: create common set_currdev

Pull together the nearly identical copies of set_currdev in i386,
userboot and efi. Other boot loaders have variances that might be fine
to use the common routine, or not. Since they are harder to test for me,
and ofw and uboot do handle these setting differently, leave them be for
now.

Sponsored by: Netflix
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D38005

(cherry picked from commit ad70f2e22ef29f94bf5208b3a9a2389575330b06)
stand/common/bootstrap.h
stand/common/misc.c
stand/efi/loader/main.c
stand/i386/loader/main.c
stand/userboot/userboot/main.c