]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: acpi: Put the generated code first in DSDT
authorSimon Glass <sjg@chromium.org>
Wed, 4 Nov 2020 16:57:32 +0000 (09:57 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 6 Nov 2020 01:51:30 +0000 (09:51 +0800)
commit01e3c9d2ecbb532ab98da46ceebe8507b6bceec8
tree94ffb669740963ad3a0ad1b7f113a88325393d0d
parent2de4744dae572b6ba9c1c3e3a40b377e53994630
x86: acpi: Put the generated code first in DSDT

The current implementation for DSDT tables is not correct for the case
where there is generated code, as the length ends up being incorrect.
Also, we want the generated code to go first in the table.

Rewrite this piece to correct these problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c