hw/acpi/aml-build: Make aml_buffer() definition consistent with the spec
commited8b5847e46c24d6e9c286892a00a34bee9b0835
authorShannon Zhao <shannon.zhao@linaro.org>
Fri, 29 May 2015 10:28:57 +0000 (29 11:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 May 2015 10:28:57 +0000 (29 11:28 +0100)
tree6dce14b1bc5b8bad370c83ca36bea458cb61a533
parent8434488400971c6793893b8c9547bc6b97e076ce
hw/acpi/aml-build: Make aml_buffer() definition consistent with the spec

According to ACPI spec, DefBuffer can take two parameters: BufferSize
and ByteList. Make it consistent with the spec. Uninitialized buffer
could be requested by passing ByteList as NULL to reserve space.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1432522520-8068-15-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/acpi/aml-build.c
include/hw/acpi/aml-build.h