mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-03 20:15:45 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for Notify
For now it still relies on Aml::to_aml_bytes() for the children as not all structures have been ported. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
24fd54401d
commit
d2319124f5
@ -946,11 +946,10 @@ impl<'a> Notify<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Aml for Notify<'a> {
|
impl<'a> Aml for Notify<'a> {
|
||||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||||
let mut bytes = vec![0x86]; /* NotifyOp */
|
bytes.push(0x86); /* NotifyOp */
|
||||||
bytes.extend_from_slice(&self.object.to_aml_bytes());
|
bytes.extend_from_slice(&self.object.to_aml_bytes());
|
||||||
bytes.extend_from_slice(&self.value.to_aml_bytes());
|
bytes.extend_from_slice(&self.value.to_aml_bytes());
|
||||||
bytes
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user