]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: Move i386_devdesc to a union
authorWarner Losh <imp@FreeBSD.org>
Thu, 11 Aug 2022 15:04:08 +0000 (09:04 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 24 Jan 2023 21:49:30 +0000 (14:49 -0700)
commitcffdb3f5e2da60f21bf9ef52c4791ee1d46b7d44
tree983eca46d2f58e817843944d9b9fb6e07d613430
parent7c1e9eef6f11c1adac277e3f54cd92175bd9ccbc
stand: Move i386_devdesc to a union

Rather than have the magic, hand-crafted fields that have to align with
fields in other structures at the end of i386_devdesc, make it into
anonymous union and adjust the code accordingly. This is safer and
similar to what CAM does.

Sponsored by: Netflix
Reviewed by: kevans, tsoome (prior version)
Differential Revision: https://reviews.freebsd.org/D35965

(cherry picked from commit f197c0bf3e075286ccea32cd12023f3317474c5a)
stand/i386/libi386/libi386.h
stand/i386/loader/main.c
stand/i386/zfsboot/zfsboot.c