[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/16] acpi: allow aml_operation_region() working on
From: |
Xiao Guangrong |
Subject: |
[Qemu-devel] [PATCH 01/16] acpi: allow aml_operation_region() working on 64 bit offset |
Date: |
Wed, 1 Jul 2015 22:50:17 +0800 |
Currently, the offset in OperationRegion is limited to 32 bit, extend it
to 64 bit so that we can switch SSDT to 64 bit in later patch
Signed-off-by: Xiao Guangrong <address@hidden>
---
hw/acpi/aml-build.c | 2 +-
include/hw/acpi/aml-build.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 0d4b324..02f9e3d 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -752,7 +752,7 @@ Aml *aml_package(uint8_t num_elements)
/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: DefOpRegion */
Aml *aml_operation_region(const char *name, AmlRegionSpace rs,
- uint32_t offset, uint32_t len)
+ uint64_t offset, uint32_t len)
{
Aml *var = aml_alloc();
build_append_byte(var->buf, 0x5B); /* ExtOpPrefix */
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index e3afa13..996ac5b 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -222,7 +222,7 @@ Aml *aml_interrupt(AmlConsumerAndProducer con_and_pro,
Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base,
uint8_t aln, uint8_t len);
Aml *aml_operation_region(const char *name, AmlRegionSpace rs,
- uint32_t offset, uint32_t len);
+ uint64_t offset, uint32_t len);
Aml *aml_irq_no_flags(uint8_t irq);
Aml *aml_named_field(const char *name, unsigned length);
Aml *aml_reserved_field(unsigned length);
--
2.1.0
- [Qemu-devel] [PATCH 00/16] implement vNVDIMM, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 02/16] i386/acpi-build: allow SSDT to operate on 64 bit, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 01/16] acpi: allow aml_operation_region() working on 64 bit offset,
Xiao Guangrong <=
- [Qemu-devel] [PATCH 04/16] acpi: add aml_sizeof, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 03/16] acpi: add aml_derefof, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 05/16] acpi: add aml_create_field, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 06/16] pc: implement NVDIMM device abstract, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 07/16] nvdimm: reserve address range for NVDIMM, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 08/16] nvdimm: init backend memory mapping and config data area, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 10/16] nvdimm: init the address region used by _DSM method, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 09/16] nvdimm: build ACPI NFIT table, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 11/16] nvdimm: build ACPI nvdimm devices, Xiao Guangrong, 2015/07/01
- [Qemu-devel] [PATCH 13/16] nvdimm: support NFIT_CMD_IMPLEMENTED function, Xiao Guangrong, 2015/07/01