mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for Arg
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
c0ca6b5377
commit
50b6ee3947
@ -842,11 +842,9 @@ impl<'a> Aml for LessThan<'a> {
|
||||
pub struct Arg(pub u8);
|
||||
|
||||
impl Aml for Arg {
|
||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
||||
let mut bytes = Vec::new();
|
||||
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||
assert!(self.0 <= 6);
|
||||
bytes.push(0x68 + self.0); /* Arg0Op */
|
||||
bytes
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user