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 Release
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
9256c41173
commit
24fd54401d
@ -927,11 +927,10 @@ impl Release {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Aml for Release {
|
impl Aml for Release {
|
||||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||||
let mut bytes = vec![0x5b]; /* ExtOpPrefix */
|
bytes.push(0x5b); /* ExtOpPrefix */
|
||||||
bytes.push(0x27); /* ReleaseOp */
|
bytes.push(0x27); /* ReleaseOp */
|
||||||
bytes.extend_from_slice(&self.mutex.to_aml_bytes());
|
self.mutex.append_aml_bytes(bytes);
|
||||||
bytes
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user