mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +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);
|
pub struct Arg(pub u8);
|
||||||
|
|
||||||
impl Aml for Arg {
|
impl Aml for Arg {
|
||||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||||
let mut bytes = Vec::new();
|
|
||||||
assert!(self.0 <= 6);
|
assert!(self.0 <= 6);
|
||||||
bytes.push(0x68 + self.0); /* Arg0Op */
|
bytes.push(0x68 + self.0); /* Arg0Op */
|
||||||
bytes
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user