diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2021-02-19 11:44:22 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-22 11:21:55 +0000 |
commit | 61fcb7e9654634cfe0c8a7bf56581fb54d943bd8 (patch) | |
tree | b65b1a743c85294bc37e1ca7fe8160eeab741073 /src/southbridge | |
parent | 7f4c30c1d5c16539faf564d38ebbc695bca8836a (diff) |
acpi/acpigen.h: Add more intuitive AML package closing functions
Until now every AML package had to be closed using acpigen_pop_len().
This commit introduces set of package closing functions corresponding
with their opening function names. For example acpigen_write_if()
opens if-statement package, acpigen_write_if_end() closes it.
Now acpigen_write_else() closes previously opened acpigen_write_if(),
so acpigen_pop_len() is not required before it.
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: Icfdc3804cd93bde049cd11dec98758b3a639eafd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50910
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lance Zhao
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/southbridge')
-rw-r--r-- | src/southbridge/intel/common/acpi_pirq_gen.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/southbridge/intel/common/acpi_pirq_gen.c b/src/southbridge/intel/common/acpi_pirq_gen.c index 6100be850c..73d101955b 100644 --- a/src/southbridge/intel/common/acpi_pirq_gen.c +++ b/src/southbridge/intel/common/acpi_pirq_gen.c @@ -94,7 +94,6 @@ void intel_acpi_gen_def_acpi_pirq(const struct device *dev) acpigen_write_package(num_devs); gen_pirq_route(EMIT_APIC, lpcb_path, pci_int_mapping); acpigen_pop_len(); /* package */ - acpigen_pop_len(); /* if PICM */ acpigen_write_else(); acpigen_emit_byte(RETURN_OP); acpigen_write_package(num_devs); |