[PATCH 1/1] acpi: fix initial RSDT and XSDT size

Simon Glass sjg at chromium.org
Mon May 11 22:14:12 CEST 2026


Hi Heinrich,

On Tue, 21 Apr 2026 at 16:48, Simon Glass <sjg at chromium.org> wrote:
>
> On 2026-04-20T16:47:25, Heinrich Schuchardt
> <heinrich.schuchardt at canonical.com> wrote:
> > acpi: fix initial RSDT and XSDT size
> >
> > When creating the RSDT and the XSDT table they contain no entries.
> > The table size therefore must equal the header size.
> >
> > Without this change a NULL deference has been observed in
> > acpi_find_table() when running ut dm on sandbox64_defconfig
> > executed via sudo ./u-boot -D.
> >
> > Fixes: 94ba15a3f13f ("x86: Move base tables to a writer function")
> > Fixes: 7e586f69070d ("acpi: Put table-setup code in its own function")
> > Fixes: ab5efd576c4e ("x86: acpi: Adjust order in acpi_table.c")
> > Fixes: 867bcb63e79f ("x86: Generate a valid ACPI table")
> > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> >
> > lib/acpi/base.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>

This uncovered a test failure, so I fixed that up when applying.

Regards,
Simon


More information about the U-Boot mailing list