Page MenuHomeFreeBSD

efiloader: shuffle reboot functionality into libefi
AcceptedPublic

Authored by kevans on Oct 25 2021, 2:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 3:33 PM
Unknown Object (File)
Sun, Apr 14, 4:57 AM
Unknown Object (File)
Sun, Apr 14, 4:50 AM
Unknown Object (File)
Dec 22 2023, 2:30 PM
Unknown Object (File)
Dec 14 2023, 4:31 AM
Unknown Object (File)
Nov 17 2023, 9:22 PM
Unknown Object (File)
Jul 9 2023, 8:06 AM
Unknown Object (File)
Apr 26 2023, 4:16 AM
Subscribers

Details

Reviewers
tsoome
imp
bcran
Summary

A later change will want to "properly" reboot (i.e. cleanup devsw
bits), so move it there now. A devsw stub is added to boot1 to keep
it linking successfully; libefi already uses the devsw global in
places, but apparently these bits are not used in the final link.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42335
Build 39223: arc lint + arc unit

Event Timeline

stand/efi/libefi/libefi.c
66

I think this is a layering violation... devsw is generally unknown to libefi and to most of the other interfaces to boot loader libraries.
I'm unsure of a better way.

stand/efi/libefi/libefi.c
66

We had committed this sin once in devicename.c already; no objection to just moving this back and putting the new command proper into loader/, though

imp added inline comments.
stand/efi/libefi/libefi.c
66

Ah, all that's moving up is knowing that a devsw exists... The struct devsw is widely used itself, so it's less bad than I thought.
So no objections...

This revision is now accepted and ready to land.Oct 25 2021, 3:15 AM