Re: [PATCH] ACPI: Implement overriding of arbitrary ACPI tables via initrd

H. Peter Anvin
2012-03-25T23:30:58Z

On 03/25/2012 02:25 AM, Borislav Petkov wrote:
>
>> /*
>> * findcpio.c
>> *
>> * Find a specific cpio member; must precede any compressed content.
>
> Looks simple enough. Btw, there's some cpio handling already done in
> <init/initramfs.c> - probably reuse some of the code there...?
>

Quite possible, but then you will have to untangle the dependencies.
Keep in mind that it needs to be able to compile this in such a way that
you have no library dependencies and no fixed address references (so
that it can be invoked from the pre-paging code to get microcode updates
in as early as at all possible.) So code reuse is a bit tricky at least
for that specific use case. The ACPI code is less sensitive since it
comes a lot later.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.