lkml.org 
[lkml]   [2012]   [Mar]   [24]   [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 03/24/2012 11:42 AM, Konrad Rzeszutek Wilk wrote:
>
> Probably should also have:
> u32 version;
>
> in case we decide to expand this structure in the future, and:
>> u32 type; /* 1 = file data, 2 = ACPI, 3 = microcode... */
>> u32 length; /* Length of data object */
>> };
>
> and encapsulate the whole thing in a 4K union?
>

For "version" you'd have to define what happens if you see a version
number you don't recognize, and why that is in any way better than
changing the magic number or the type. It is something that people like
to throw in without thinking about it, and that is a mistake.

Forcing everything to be page-aligned may be a good idea, although that
assumes all bootloaders actually align them that way...

>
> Perhaps the header should be in big-endian (that is the same as the network
> byte order, right?) and each sub-type can define its own endian?
>

The content of the encapsulation is its own thing; it will be different
for different types as most of them already

-hpa

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



\
 
 \ /
  Last update: 2012-03-24 20:19    [from the cache]
©2003-2011 Jasper Spaans