]> 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>
Wed, 11 Jan 2023 22:15:15 +0000 (15:15 -0700)
commitad70f2e22ef29f94bf5208b3a9a2389575330b06
tree3b618617e1b53853facf76abfbd47e7ad3aee082
parentbf020787d5f1b4a1274135b49309f7e9ef3955e1
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
stand/common/bootstrap.h
stand/common/misc.c
stand/efi/loader/main.c
stand/i386/loader/main.c
stand/userboot/userboot/main.c