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 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 {
|
||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
||||
let mut bytes = vec![0x5b]; /* ExtOpPrefix */
|
||||
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||
bytes.push(0x5b); /* ExtOpPrefix */
|
||||
bytes.push(0x27); /* ReleaseOp */
|
||||
bytes.extend_from_slice(&self.mutex.to_aml_bytes());
|
||||
bytes
|
||||
self.mutex.append_aml_bytes(bytes);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user