oxidecomputer / amd-apcb

AMD Generic Encapsulated Software Architecture Platform Security Processor Configuration Block manipulation library
Mozilla Public License 2.0
14 stars 2 forks source link

Remove memory::platform_tuning type_ hardcoding #8

Closed daym closed 2 years ago

daym commented 2 years ago

Currently, we do:

impl_EntryCompatible!(Terminator, 0xfeef, 2);

                        impl Default for Terminator {
                            fn default() -> Self {
                                Self {
                                    type_: 0xfeef.into(),
                                }
                            }
                        }

But the macro impl_EntryCompatible introduces a Self::TAG. We could use that in the second case.