]> git.baikalelectronics.ru Git - uboot.git/commit
x86: acpi: Fix calculation of DSDT length
authorWolfgang Wallner <wolfgang.wallner@br-automation.com>
Wed, 16 Sep 2020 14:57:52 +0000 (16:57 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 21 Sep 2020 08:41:35 +0000 (16:41 +0800)
commit39dbea0d2c81f48f3a25752797603568897e2dfd
tree4f01f845d4bb576c2804095acde4ae8c2f1163c8
parentca5cf805212e866776bc4c1a3549e3b6f5ec8f6c
x86: acpi: Fix calculation of DSDT length

Currently, the calculation for the length of the DSDT table includes any
bytes that are added for alignment, but those bytes are not initialized.

This is because the DSDT length is calculated after a call to
acpi_inc_align(). Split this up into the following sequence:

  * acpi_inc()
  * Calculate DSDT length
  * acpi_align()

Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c