mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for Mutex
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
8b7bfca9b0
commit
b1d4bcf952
@ -888,12 +888,11 @@ impl Mutex {
|
||||
}
|
||||
|
||||
impl Aml for Mutex {
|
||||
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(0x01); /* MutexOp */
|
||||
bytes.extend_from_slice(&self.path.to_aml_bytes());
|
||||
self.path.append_aml_bytes(bytes);
|
||||
bytes.push(self.sync_level);
|
||||
bytes
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user