mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for Local
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
50b6ee3947
commit
7da69b59f7
@ -851,11 +851,9 @@ impl Aml for Arg {
|
||||
pub struct Local(pub u8);
|
||||
|
||||
impl Aml for Local {
|
||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
||||
let mut bytes = Vec::new();
|
||||
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||
assert!(self.0 <= 7);
|
||||
bytes.push(0x60 + self.0); /* Local0Op */
|
||||
bytes
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user