[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F6FC838.7000904@zytor.com>
Date: Sun, 25 Mar 2012 18:36:56 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Borislav Petkov <bp@...en8.de>, Thomas Renninger <trenn@...e.de>,
eric.piel@...mplin-utc.net, vojcek@...n.pl, dsdt@...gusch.at,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
x86@...nel.org, Lin Ming <ming.m.lin@...el.com>, lenb@...nel.org,
robert.moore@...el.com, Al Viro <viro@...iv.linux.org.uk>
Subject: Re: [PATCH] ACPI: Implement overriding of arbitrary ACPI tables via
initrd
On 03/25/2012 01:54 AM, Borislav Petkov wrote:
>
> One other downside for this approach would be the need to have
> initrd/initramfs support always compiled into the kernel in order to do
> all those things but, hey, distro kernels already have that so we're
> probably stuck with it anyway.
>
In theory we could make the early stuff independent of the initramfs
code in the kernel -- just like we always build in an initramfs.
Not that it matters much, at this point the no-initramfs configurations
are mostly theoretical.
I was able to shave a bit more off the code... optimizing for size can
be fun sometimes. The code is now 442 bytes on x86-64 and 413 on i386
when compiled with -O2 -fomit-frame-pointer; with -Os
-fomit-frame-pointer it is 372/410... all of that without any library
calls or relocations of any kind (which means it should be safe to call
from the prepaging environment.)
-hpa
View attachment "findcpio.c" of type "text/x-csrc" (2506 bytes)
Powered by blists - more mailing lists