git: ee938b20335d - main - kern: efirt: correct configuration table entry size

Kyle Evans kevans at freebsd.org
Tue Dec 29 17:52:11 UTC 2020


On Tue, Dec 29, 2020 at 11:48 AM Jessica Clarke <jrtc27 at freebsd.org> wrote:
>
> On 29 Dec 2020, at 17:39, Kyle Evans <kevans at FreeBSD.org> wrote:
> > diff --git a/sys/sys/efi.h b/sys/sys/efi.h
> > index b9f31454efff..220509853cb2 100644
> > --- a/sys/sys/efi.h
> > +++ b/sys/sys/efi.h
> > @@ -52,7 +52,7 @@ typedef unsigned long efi_status;
> >
> > struct efi_cfgtbl {
> >       struct uuid     ct_uuid;
> > -     uint64_t        ct_data;
> > +     void            *ct_data;
>
> Hm, this should probably be a u_long/vm_offset_t/vm_paddr_t (though the
> tables are unlikely to be in places where you need PAE so even if
> technically correct, vm_paddr_t probably just makes things more awkward
> for no gain) given it's not a real pointer that can be dereferenced.
>

I don't really have strong feelings either way; I originally pushed it
to void* to match edk2 because I was entertaining the thought of just
using edk2's definitions instead anyways, but I got distracted and did
not get back around to deciding if that was a reasonable idea or not.


More information about the dev-commits-src-all mailing list