diff options
author | Igor Mammedov <imammedo@redhat.com> | 2015-02-18 19:14:45 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-02-26 13:04:17 +0100 |
commit | e2ea299b01fbd9d4d0262cfbfcbdbd02ada984a5 (patch) | |
tree | 581320d9476c2bdc7bdd06f19905ae00a041ca21 /hw/acpi | |
parent | ddf1ec2ffe30bd6bb34acc020622741eafc16b79 (diff) |
acpi: add aml_reserved_field() 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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index eeb006f416..9d9b978e13 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -598,6 +598,16 @@ Aml *aml_named_field(const char *name, unsigned length) return var; } +/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: ReservedField */ +Aml *aml_reserved_field(unsigned length) +{ + Aml *var = aml_alloc(); + /* ReservedField := 0x00 PkgLength */ + build_append_byte(var->buf, 0x00); + build_append_pkg_length(var->buf, length, false); + return var; +} + /* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: DefField */ Aml *aml_field(const char *name, AmlFieldFlags flags) { |