lkml.org 
[lkml]   [2012]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ACPI: Implement overriding of arbitrary ACPI tables via initrd
On Sat, Mar 24, 2012 at 03:44:10PM -0700, H. Peter Anvin wrote:
> On 03/24/2012 03:21 PM, H. Peter Anvin wrote:
> > The attached cpio-parsing code compiles to 458 bytes on x86-64 and 476
> > bytes on i386, and that is without any library dependencies at all.
> > Again, it will completely stop at the first compressed data item, so any
> > such kernel objects absolutely will have to be first. In good Linux
> > tradition, it is also completely untested.
> >
> > However, given that very reasonable size I would think that this is a
> > reasonable approach. Anyone who has a better suggestion for the
> > namespace than "kernel/"?
> >
>
> Slightly improved version with actually working memcmp()...

[..]

> /*
> * 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...?

--
Regards/Gruss,
Boris.


\
 
 \ /
  Last update: 2012-03-25 11:29    [W:0.748 / U:1.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site