diff options
author | Igor Mammedov <imammedo@redhat.com> | 2015-02-18 19:14:23 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-02-26 13:04:12 +0100 |
commit | 7193f3a67ee4794096255396eeac99f9624144e1 (patch) | |
tree | f54a2f1efd346204eda57c5aa99a9f86c61d5028 /hw/acpi | |
parent | b25af5ad5953c9587e59c82cc668e574384f5245 (diff) |
acpi: add aml_arg() term
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/aml-build.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 8207d9c057..99d213c182 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -397,6 +397,17 @@ Aml *aml_name_decl(const char *name, Aml *val) return var; } +/* ACPI 1.0b: 16.2.6.1 Arg Objects Encoding */ +Aml *aml_arg(int pos) +{ + Aml *var; + uint8_t op = 0x68 /* ARG0 op */ + pos; + + assert(pos <= 6); + var = aml_opcode(op); + return var; +} + /* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefIfElse */ Aml *aml_if(Aml *predicate) { |