Closed daym closed 2 years ago
FYI, I opened PR#10 that is basically this change, but written in terms of bitstruct
, guided by the Hypatia implementation.
This triples the code size and adds a dependency on another external library that's basically redundant with
bitstruct
; I don't quite feel like it pulls its weight, though if we wanted to go this route I'd think we could usebitstruct
as in https://github.com/hypatia-hypervisor/hypatia/blob/main/x86_64/src/segment.rs#L119What do you think?
I agree--let's just use bitstruct. I saw you already have a PR with it :)
Abandoned in favor of https://github.com/oxidecomputer/phbl/pull/10
This triples the code size and adds a dependency on another external library that's basically redundant with
bitstruct
; I don't quite feel like it pulls its weight, though if we wanted to go this route I'd think we could usebitstruct
as in https://github.com/hypatia-hypervisor/hypatia/blob/main/x86_64/src/segment.rs#L119What do you think?