mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for LessThan
For now it still relies on Aml::to_aml_bytes() for the predicates as not all structures have been ported. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
8c9f0e407f
commit
c0ca6b5377
@ -832,11 +832,10 @@ impl<'a> LessThan<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Aml for LessThan<'a> {
|
impl<'a> Aml for LessThan<'a> {
|
||||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||||
let mut bytes = vec![0x95]; /* LLessOp */
|
bytes.push(0x95); /* LLessOp */
|
||||||
bytes.extend_from_slice(&self.left.to_aml_bytes());
|
bytes.extend_from_slice(&self.left.to_aml_bytes());
|
||||||
bytes.extend_from_slice(&self.right.to_aml_bytes());
|
bytes.extend_from_slice(&self.right.to_aml_bytes());
|
||||||
bytes
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user