mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 13:05:45 +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);
|
pub struct Local(pub u8);
|
||||||
|
|
||||||
impl Aml for Local {
|
impl Aml for Local {
|
||||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||||
let mut bytes = Vec::new();
|
|
||||||
assert!(self.0 <= 7);
|
assert!(self.0 <= 7);
|
||||||
bytes.push(0x60 + self.0); /* Local0Op */
|
bytes.push(0x60 + self.0); /* Local0Op */
|
||||||
bytes
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user