From bd5f7c1b392197c407409843c40782e74789038a Mon Sep 17 00:00:00 2001 From: Al Stone Date: Apr 07 2014 19:09:37 +0000 Subject: Sync up/refresh all the patches --- diff --git a/debian/patches/aapits-linux.patch b/debian/patches/aapits-linux.patch index 5c99927..6a385ac 100644 --- a/debian/patches/aapits-linux.patch +++ b/debian/patches/aapits-linux.patch @@ -318,7 +318,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atresource.c acpica-unix2-20130626- diff -urN acpica-unix2-20130626/tests/aapits/Makefile acpica-unix2-20130626-aapits/tests/aapits/Makefile --- acpica-unix2-20130626/tests/aapits/Makefile 2013-01-17 12:48:29.000000000 -0700 +++ acpica-unix2-20130626-aapits/tests/aapits/Makefile 2013-07-25 15:17:09.309236422 -0600 -@@ -193,7 +193,7 @@ +@@ -194,7 +194,7 @@ CFLAGS+= -Wall -g -D_LINUX -DNDEBUG -D_CONSOLE -DACPI_EXEC_APP -D_MULTI_THREADED -Wstrict-prototypes -I../../source/include diff --git a/debian/patches/aapits-makefile.patch b/debian/patches/aapits-makefile.patch new file mode 100644 index 0000000..d3e8264 --- /dev/null +++ b/debian/patches/aapits-makefile.patch @@ -0,0 +1,19 @@ +diff -urN acpica-unix2-20140325/tests/aapits/Makefile acpica-unix2-20140325/tests/aapits/Makefile +--- acpica-unix2-20140325/tests/aapits/Makefile 2014-04-05 14:23:14.683636794 -0600 ++++ acpica-unix2-20140325-aapits/tests/aapits/Makefile 2014-04-05 15:10:57.879184598 -0600 +@@ -20,6 +20,7 @@ + ../../source/components/hardware/hwxface.c \ + ../../source/common/cmfsize.c \ + ../../source/common/getopt.c \ ++ ../../source/common/ahids.c \ + ../../source/components/debugger/dbcmds.c \ + ../../source/components/debugger/dbconvert.c \ + ../../source/components/debugger/dbdisply.c \ +@@ -154,6 +155,7 @@ + ../../source/components/tables/tbfadt.c \ + ../../source/components/tables/tbfind.c \ + ../../source/components/tables/tbinstal.c \ ++ ../../source/components/tables/tbdata.c \ + ../../source/components/tables/tbprint.c \ + ../../source/components/tables/tbutils.c \ + ../../source/components/tables/tbxface.c \ diff --git a/debian/patches/debian-big_endian.patch b/debian/patches/debian-big_endian.patch index 6e2fb66..a0b55c0 100644 --- a/debian/patches/debian-big_endian.patch +++ b/debian/patches/debian-big_endian.patch @@ -29,11 +29,11 @@ Signed-off-by: Paolo Bonzini source/include/platform/aclinux.h | 7 +- 12 file modificati, 541 inserzioni(+), 306 rimozioni(-) -Index: foo/source/compiler/aslcodegen.c -=================================================================== ---- foo.orig/source/compiler/aslcodegen.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslcodegen.c 2013-08-26 13:45:58.000000000 -0600 -@@ -238,16 +238,12 @@ +diff --git a/source/compiler/aslcodegen.c b/source/compiler/aslcodegen.c +index 2252ab4..c3c3e06 100644 +--- a/source/compiler/aslcodegen.c ++++ b/source/compiler/aslcodegen.c +@@ -238,16 +238,12 @@ CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op) { UINT8 PkgLenFirstByte; @@ -120,7 +120,7 @@ Index: foo/source/compiler/aslcodegen.c break; } -@@ -325,8 +322,8 @@ +@@ -325,8 +321,8 @@ CgWriteAmlOpcode ( if (Op->Asl.AmlPkgLenBytes == 1) { /* Simplest case -- no bytes to follow, just write the count */ @@ -131,7 +131,7 @@ Index: foo/source/compiler/aslcodegen.c } else if (Op->Asl.AmlPkgLenBytes != 0) { -@@ -336,7 +333,7 @@ +@@ -336,7 +332,7 @@ CgWriteAmlOpcode ( */ PkgLenFirstByte = (UINT8) (((UINT32) (Op->Asl.AmlPkgLenBytes - 1) << 6) | @@ -140,7 +140,7 @@ Index: foo/source/compiler/aslcodegen.c CgLocalWriteAmlData (Op, &PkgLenFirstByte, 1); -@@ -344,37 +341,44 @@ +@@ -344,37 +340,44 @@ CgWriteAmlOpcode ( * Shift the length over by the 4 bits we just stuffed * in the first byte */ @@ -198,7 +198,7 @@ Index: foo/source/compiler/aslcodegen.c break; case AML_STRING_OP: -@@ -408,6 +412,7 @@ +@@ -408,6 +409,7 @@ CgWriteTableHeader ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child; @@ -206,7 +206,7 @@ Index: foo/source/compiler/aslcodegen.c /* AML filename */ -@@ -444,7 +449,7 @@ +@@ -444,7 +446,7 @@ CgWriteTableHeader ( /* OEM Revision */ Child = Child->Asl.Next; @@ -215,7 +215,7 @@ Index: foo/source/compiler/aslcodegen.c /* Compiler ID */ -@@ -452,11 +457,12 @@ +@@ -452,11 +453,12 @@ CgWriteTableHeader ( /* Compiler version */ @@ -230,7 +230,7 @@ Index: foo/source/compiler/aslcodegen.c TableHeader.Checksum = 0; CgLocalWriteAmlData (Op, &TableHeader, sizeof (ACPI_TABLE_HEADER)); -@@ -520,7 +526,10 @@ +@@ -520,7 +523,10 @@ CgWriteNode ( ACPI_PARSE_OBJECT *Op) { ASL_RESOURCE_NODE *Rnode; @@ -242,7 +242,7 @@ Index: foo/source/compiler/aslcodegen.c /* Always check for DEFAULT_ARG and other "Noop" nodes */ /* TBD: this may not be the best place for this check */ -@@ -538,13 +547,24 @@ +@@ -538,13 +544,24 @@ CgWriteNode ( switch (Op->Asl.AmlOpcode) { case AML_RAW_DATA_BYTE: @@ -270,11 +270,11 @@ Index: foo/source/compiler/aslcodegen.c case AML_RAW_DATA_BUFFER: -Index: foo/source/compiler/aslopcodes.c -=================================================================== ---- foo.orig/source/compiler/aslopcodes.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslopcodes.c 2013-08-26 13:45:58.000000000 -0600 -@@ -476,6 +476,7 @@ +diff --git a/source/compiler/aslopcodes.c b/source/compiler/aslopcodes.c +index cddc945..6deddc9 100644 +--- a/source/compiler/aslopcodes.c ++++ b/source/compiler/aslopcodes.c +@@ -476,6 +475,7 @@ OpcDoUnicode ( UINT32 i; UINT8 *AsciiString; UINT16 *UnicodeString; @@ -282,7 +282,7 @@ Index: foo/source/compiler/aslopcodes.c ACPI_PARSE_OBJECT *BufferLengthOp; -@@ -502,7 +503,8 @@ +@@ -502,7 +502,8 @@ OpcDoUnicode ( for (i = 0; i < Count; i++) { @@ -292,11 +292,11 @@ Index: foo/source/compiler/aslopcodes.c } /* -Index: foo/source/compiler/aslrestype1.c -=================================================================== ---- foo.orig/source/compiler/aslrestype1.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype1.c 2013-08-26 13:45:58.000000000 -0600 -@@ -152,6 +152,11 @@ +diff --git a/source/compiler/aslrestype1.c b/source/compiler/aslrestype1.c +index 5b92151..b1fa5f5 100644 +--- a/source/compiler/aslrestype1.c ++++ b/source/compiler/aslrestype1.c +@@ -152,6 +152,11 @@ RsDoMemory24Descriptor ( ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -308,7 +308,7 @@ Index: foo/source/compiler/aslrestype1.c UINT32 i; -@@ -160,7 +165,8 @@ +@@ -160,7 +165,8 @@ RsDoMemory24Descriptor ( Descriptor = Rnode->Buffer; Descriptor->Memory24.DescriptorType = ACPI_RESOURCE_NAME_MEMORY24; @@ -318,7 +318,7 @@ Index: foo/source/compiler/aslrestype1.c /* Process all child initialization nodes */ -@@ -177,7 +183,7 @@ +@@ -177,7 +183,7 @@ RsDoMemory24Descriptor ( case 1: /* Min Address */ @@ -327,7 +327,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.Minimum)); MinOp = InitializerOp; -@@ -185,7 +191,7 @@ +@@ -185,7 +191,7 @@ RsDoMemory24Descriptor ( case 2: /* Max Address */ @@ -336,7 +336,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.Maximum)); MaxOp = InitializerOp; -@@ -193,14 +199,14 @@ +@@ -193,14 +199,14 @@ RsDoMemory24Descriptor ( case 3: /* Alignment */ @@ -353,7 +353,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.AddressLength)); LengthOp = InitializerOp; -@@ -223,12 +229,17 @@ +@@ -223,12 +229,17 @@ RsDoMemory24Descriptor ( /* Validate the Min/Max/Len/Align values (Alignment==0 means 64K) */ RsSmallAddressCheck (ACPI_RESOURCE_NAME_MEMORY24, @@ -375,7 +375,7 @@ Index: foo/source/compiler/aslrestype1.c return (Rnode); } -@@ -259,6 +270,11 @@ +@@ -259,6 +270,11 @@ RsDoMemory32Descriptor ( ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *AlignOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -387,7 +387,7 @@ Index: foo/source/compiler/aslrestype1.c UINT32 i; -@@ -267,7 +283,8 @@ +@@ -267,7 +283,8 @@ RsDoMemory32Descriptor ( Descriptor = Rnode->Buffer; Descriptor->Memory32.DescriptorType = ACPI_RESOURCE_NAME_MEMORY32; @@ -397,7 +397,7 @@ Index: foo/source/compiler/aslrestype1.c /* Process all child initialization nodes */ -@@ -284,7 +301,7 @@ +@@ -284,7 +301,7 @@ RsDoMemory32Descriptor ( case 1: /* Min Address */ @@ -406,7 +406,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Minimum)); MinOp = InitializerOp; -@@ -292,7 +309,7 @@ +@@ -292,7 +309,7 @@ RsDoMemory32Descriptor ( case 2: /* Max Address */ @@ -415,7 +415,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Maximum)); MaxOp = InitializerOp; -@@ -300,7 +317,7 @@ +@@ -300,7 +317,7 @@ RsDoMemory32Descriptor ( case 3: /* Alignment */ @@ -424,7 +424,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_ALIGNMENT, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Alignment)); AlignOp = InitializerOp; -@@ -308,7 +325,7 @@ +@@ -308,7 +325,7 @@ RsDoMemory32Descriptor ( case 4: /* Length */ @@ -433,7 +433,7 @@ Index: foo/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.AddressLength)); LengthOp = InitializerOp; -@@ -331,12 +348,17 @@ +@@ -331,12 +348,17 @@ RsDoMemory32Descriptor ( /* Validate the Min/Max/Len/Align values */ RsSmallAddressCheck (ACPI_RESOURCE_NAME_MEMORY32, @@ -455,7 +455,7 @@ Index: foo/source/compiler/aslrestype1.c return (Rnode); } -@@ -363,6 +385,7 @@ +@@ -363,6 +385,7 @@ RsDoMemory32FixedDescriptor ( AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -463,7 +463,7 @@ Index: foo/source/compiler/aslrestype1.c UINT32 i; -@@ -371,7 +394,8 @@ +@@ -371,7 +394,8 @@ RsDoMemory32FixedDescriptor ( Descriptor = Rnode->Buffer; Descriptor->FixedMemory32.DescriptorType = ACPI_RESOURCE_NAME_FIXED_MEMORY32; @@ -473,7 +473,7 @@ Index: foo/source/compiler/aslrestype1.c /* Process all child initialization nodes */ -@@ -388,14 +412,16 @@ +@@ -388,14 +412,16 @@ RsDoMemory32FixedDescriptor ( case 1: /* Address */ @@ -492,11 +492,11 @@ Index: foo/source/compiler/aslrestype1.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength)); break; -Index: foo/source/compiler/aslrestype1i.c -=================================================================== ---- foo.orig/source/compiler/aslrestype1i.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype1i.c 2013-08-26 13:45:58.000000000 -0600 -@@ -202,6 +202,8 @@ +diff --git a/source/compiler/aslrestype1i.c b/source/compiler/aslrestype1i.c +index 8335e8f..097eb05 100644 +--- a/source/compiler/aslrestype1i.c ++++ b/source/compiler/aslrestype1i.c +@@ -202,6 +202,8 @@ RsDoFixedDmaDescriptor ( AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -505,7 +505,7 @@ Index: foo/source/compiler/aslrestype1i.c UINT32 i; -@@ -220,14 +222,14 @@ +@@ -220,14 +222,14 @@ RsDoFixedDmaDescriptor ( { case 0: /* DMA Request Lines [WORD] (_DMA) */ @@ -522,7 +522,7 @@ Index: foo/source/compiler/aslrestype1i.c RsCreateWordField (InitializerOp, ACPI_RESTAG_DMATYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedDma.Channels)); break; -@@ -252,6 +254,9 @@ +@@ -252,6 +253,9 @@ RsDoFixedDmaDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -532,7 +532,7 @@ Index: foo/source/compiler/aslrestype1i.c return (Rnode); } -@@ -279,6 +284,7 @@ +@@ -279,6 +283,7 @@ RsDoFixedIoDescriptor ( ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *AddressOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -540,7 +540,7 @@ Index: foo/source/compiler/aslrestype1i.c UINT32 i; -@@ -297,8 +303,7 @@ +@@ -297,8 +302,7 @@ RsDoFixedIoDescriptor ( { case 0: /* Base Address */ @@ -550,7 +550,7 @@ Index: foo/source/compiler/aslrestype1i.c RsCreateWordField (InitializerOp, ACPI_RESTAG_BASEADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedIo.Address)); AddressOp = InitializerOp; -@@ -328,11 +333,13 @@ +@@ -328,11 +332,13 @@ RsDoFixedIoDescriptor ( /* Error checks */ @@ -565,7 +565,7 @@ Index: foo/source/compiler/aslrestype1i.c return (Rnode); } -@@ -363,6 +370,8 @@ +@@ -363,6 +369,8 @@ RsDoIoDescriptor ( ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *AlignOp = NULL; ASL_RESOURCE_NODE *Rnode; @@ -574,7 +574,7 @@ Index: foo/source/compiler/aslrestype1i.c UINT32 i; -@@ -388,8 +397,7 @@ +@@ -388,8 +396,7 @@ RsDoIoDescriptor ( case 1: /* Min Address */ @@ -584,7 +584,7 @@ Index: foo/source/compiler/aslrestype1i.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.Minimum)); MinOp = InitializerOp; -@@ -397,8 +405,7 @@ +@@ -397,8 +404,7 @@ RsDoIoDescriptor ( case 2: /* Max Address */ @@ -594,7 +594,7 @@ Index: foo/source/compiler/aslrestype1i.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.Maximum)); MaxOp = InitializerOp; -@@ -439,12 +446,15 @@ +@@ -439,12 +445,15 @@ RsDoIoDescriptor ( /* Validate the Min/Max/Len/Align values */ RsSmallAddressCheck (ACPI_RESOURCE_NAME_IO, @@ -612,7 +612,7 @@ Index: foo/source/compiler/aslrestype1i.c return (Rnode); } -@@ -565,9 +575,9 @@ +@@ -565,9 +574,9 @@ RsDoIrqDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -624,7 +624,7 @@ Index: foo/source/compiler/aslrestype1i.c return (Rnode); } -@@ -667,6 +677,6 @@ +@@ -667,6 +676,6 @@ RsDoIrqNoFlagsDescriptor ( /* Now we can set the interrupt mask */ @@ -632,11 +632,11 @@ Index: foo/source/compiler/aslrestype1i.c + ACPI_MOVE_16_TO_16(&Descriptor->Irq.IrqMask, &IrqMask); return (Rnode); } -Index: foo/source/compiler/aslrestype2.c -=================================================================== ---- foo.orig/source/compiler/aslrestype2.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype2.c 2013-08-26 13:45:58.000000000 -0600 -@@ -79,6 +79,7 @@ +diff --git a/source/compiler/aslrestype2.c b/source/compiler/aslrestype2.c +index f0de854..b6d8d1d 100644 +--- a/source/compiler/aslrestype2.c ++++ b/source/compiler/aslrestype2.c +@@ -79,6 +79,7 @@ RsDoGeneralRegisterDescriptor ( AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -644,7 +644,7 @@ Index: foo/source/compiler/aslrestype2.c UINT32 i; -@@ -87,7 +88,9 @@ +@@ -87,7 +88,9 @@ RsDoGeneralRegisterDescriptor ( Descriptor = Rnode->Buffer; Descriptor->GenericReg.DescriptorType = ACPI_RESOURCE_NAME_GENERIC_REGISTER; @@ -655,7 +655,7 @@ Index: foo/source/compiler/aslrestype2.c /* Process all child initialization nodes */ -@@ -118,7 +121,8 @@ +@@ -118,7 +121,8 @@ RsDoGeneralRegisterDescriptor ( case 3: /* Register Address */ @@ -665,7 +665,7 @@ Index: foo/source/compiler/aslrestype2.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_ADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.Address)); break; -@@ -176,6 +180,7 @@ +@@ -176,6 +180,7 @@ RsDoInterruptDescriptor ( AML_RESOURCE *Rover = NULL; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; @@ -673,7 +673,7 @@ Index: foo/source/compiler/aslrestype2.c UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 i; -@@ -222,7 +227,7 @@ +@@ -222,7 +227,7 @@ RsDoInterruptDescriptor ( * Initial descriptor length -- may be enlarged if there are * optional fields present */ @@ -682,7 +682,7 @@ Index: foo/source/compiler/aslrestype2.c Descriptor->ExtendedIrq.InterruptCount = 0; Rover = ACPI_CAST_PTR (AML_RESOURCE, -@@ -330,10 +335,11 @@ +@@ -330,10 +335,11 @@ RsDoInterruptDescriptor ( /* Save the integer and move pointer to the next one */ @@ -696,7 +696,7 @@ Index: foo/source/compiler/aslrestype2.c /* Case 7: First interrupt number in list */ -@@ -369,7 +375,7 @@ +@@ -369,7 +376,7 @@ RsDoInterruptDescriptor ( { Rover->ByteItem = ResSourceIndex; Rover = ACPI_ADD_PTR (AML_RESOURCE, &(Rover->ByteItem), 1); @@ -705,7 +705,7 @@ Index: foo/source/compiler/aslrestype2.c } /* Add optional ResSource string if present */ -@@ -381,13 +387,14 @@ +@@ -381,13 +387,14 @@ RsDoInterruptDescriptor ( Rover = ACPI_ADD_PTR ( AML_RESOURCE, &(Rover->ByteItem), StringLength); @@ -722,7 +722,7 @@ Index: foo/source/compiler/aslrestype2.c return (Rnode); } -@@ -438,7 +445,7 @@ +@@ -438,7 +445,7 @@ RsDoVendorLargeDescriptor ( Descriptor = Rnode->Buffer; Descriptor->VendorLarge.DescriptorType = ACPI_RESOURCE_NAME_VENDOR_LARGE; @@ -731,11 +731,11 @@ Index: foo/source/compiler/aslrestype2.c /* Point to end-of-descriptor for vendor data */ -Index: foo/source/compiler/aslrestype2d.c -=================================================================== ---- foo.orig/source/compiler/aslrestype2d.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype2d.c 2013-08-26 13:45:58.000000000 -0600 -@@ -83,7 +83,13 @@ +diff --git a/source/compiler/aslrestype2d.c b/source/compiler/aslrestype2d.c +index 1ca0f2d..5bebd30 100644 +--- a/source/compiler/aslrestype2d.c ++++ b/source/compiler/aslrestype2d.c +@@ -83,7 +83,13 @@ RsDoDwordIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; @@ -749,7 +749,7 @@ Index: foo/source/compiler/aslrestype2d.c UINT8 *OptionalFields; UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -104,8 +110,7 @@ +@@ -104,8 +110,7 @@ RsDoDwordIoDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); @@ -759,7 +759,7 @@ Index: foo/source/compiler/aslrestype2d.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -149,8 +154,7 @@ +@@ -149,8 +154,7 @@ RsDoDwordIoDescriptor ( case 5: /* Address Granularity */ @@ -769,7 +769,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Granularity)); GranOp = InitializerOp; -@@ -158,8 +162,7 @@ +@@ -158,8 +162,7 @@ RsDoDwordIoDescriptor ( case 6: /* Address Min */ @@ -779,7 +779,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Minimum)); MinOp = InitializerOp; -@@ -167,8 +170,7 @@ +@@ -167,8 +170,7 @@ RsDoDwordIoDescriptor ( case 7: /* Address Max */ @@ -789,7 +789,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Maximum)); MaxOp = InitializerOp; -@@ -176,16 +178,14 @@ +@@ -176,16 +178,14 @@ RsDoDwordIoDescriptor ( case 8: /* Translation Offset */ @@ -808,7 +808,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.AddressLength)); LengthOp = InitializerOp; -@@ -199,7 +199,7 @@ +@@ -199,7 +199,7 @@ RsDoDwordIoDescriptor ( OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -817,7 +817,7 @@ Index: foo/source/compiler/aslrestype2d.c ResSourceIndex = TRUE; } break; -@@ -213,8 +213,7 @@ +@@ -213,8 +213,7 @@ RsDoDwordIoDescriptor ( { /* Found a valid ResourceSource */ @@ -827,7 +827,7 @@ Index: foo/source/compiler/aslrestype2d.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -274,13 +273,20 @@ +@@ -274,13 +273,20 @@ RsDoDwordIoDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -852,7 +852,7 @@ Index: foo/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -@@ -315,7 +321,13 @@ +@@ -315,7 +321,13 @@ RsDoDwordMemoryDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -866,7 +866,7 @@ Index: foo/source/compiler/aslrestype2d.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -335,11 +347,9 @@ +@@ -335,11 +347,9 @@ RsDoDwordMemoryDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); @@ -879,7 +879,7 @@ Index: foo/source/compiler/aslrestype2d.c /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) -@@ -388,8 +398,7 @@ +@@ -388,8 +398,7 @@ RsDoDwordMemoryDescriptor ( case 6: /* Address Granularity */ @@ -889,7 +889,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Granularity)); GranOp = InitializerOp; -@@ -397,8 +406,7 @@ +@@ -397,8 +406,7 @@ RsDoDwordMemoryDescriptor ( case 7: /* Min Address */ @@ -899,7 +899,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Minimum)); MinOp = InitializerOp; -@@ -406,8 +414,7 @@ +@@ -406,8 +414,7 @@ RsDoDwordMemoryDescriptor ( case 8: /* Max Address */ @@ -909,7 +909,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Maximum)); MaxOp = InitializerOp; -@@ -415,16 +422,14 @@ +@@ -415,16 +422,14 @@ RsDoDwordMemoryDescriptor ( case 9: /* Translation Offset */ @@ -928,7 +928,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.AddressLength)); LengthOp = InitializerOp; -@@ -436,7 +441,7 @@ +@@ -436,7 +441,7 @@ RsDoDwordMemoryDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -937,7 +937,7 @@ Index: foo/source/compiler/aslrestype2d.c ResSourceIndex = TRUE; } break; -@@ -448,8 +453,8 @@ +@@ -448,8 +453,8 @@ RsDoDwordMemoryDescriptor ( { if (StringLength) { @@ -948,7 +948,7 @@ Index: foo/source/compiler/aslrestype2d.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -510,13 +515,20 @@ +@@ -510,13 +515,20 @@ RsDoDwordMemoryDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -973,7 +973,7 @@ Index: foo/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -@@ -551,7 +563,13 @@ +@@ -551,7 +563,13 @@ RsDoDwordSpaceDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -987,7 +987,7 @@ Index: foo/source/compiler/aslrestype2d.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -570,8 +588,7 @@ +@@ -570,8 +588,7 @@ RsDoDwordSpaceDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); @@ -997,7 +997,7 @@ Index: foo/source/compiler/aslrestype2d.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -620,8 +637,7 @@ +@@ -620,8 +637,7 @@ RsDoDwordSpaceDescriptor ( case 6: /* Address Granularity */ @@ -1007,7 +1007,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Granularity)); GranOp = InitializerOp; -@@ -629,8 +645,7 @@ +@@ -629,8 +645,7 @@ RsDoDwordSpaceDescriptor ( case 7: /* Min Address */ @@ -1017,7 +1017,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Minimum)); MinOp = InitializerOp; -@@ -638,8 +653,7 @@ +@@ -638,8 +651,7 @@ RsDoDwordSpaceDescriptor ( case 8: /* Max Address */ @@ -1027,7 +1027,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Maximum)); MaxOp = InitializerOp; -@@ -647,16 +661,14 @@ +@@ -647,16 +661,14 @@ RsDoDwordSpaceDescriptor ( case 9: /* Translation Offset */ @@ -1046,7 +1046,7 @@ Index: foo/source/compiler/aslrestype2d.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.AddressLength)); LengthOp = InitializerOp; -@@ -668,7 +680,7 @@ +@@ -668,7 +680,7 @@ RsDoDwordSpaceDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -1055,7 +1055,7 @@ Index: foo/source/compiler/aslrestype2d.c ResSourceIndex = TRUE; } break; -@@ -680,8 +692,7 @@ +@@ -680,8 +692,7 @@ RsDoDwordSpaceDescriptor ( { if (StringLength) { @@ -1065,7 +1065,7 @@ Index: foo/source/compiler/aslrestype2d.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -728,13 +739,20 @@ +@@ -728,13 +739,20 @@ RsDoDwordSpaceDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1090,11 +1090,11 @@ Index: foo/source/compiler/aslrestype2d.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); -Index: foo/source/compiler/aslrestype2e.c -=================================================================== ---- foo.orig/source/compiler/aslrestype2e.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype2e.c 2013-08-26 13:45:58.000000000 -0600 -@@ -82,6 +82,13 @@ +diff --git a/source/compiler/aslrestype2e.c b/source/compiler/aslrestype2e.c +index e5fff47..d701880 100644 +--- a/source/compiler/aslrestype2e.c ++++ b/source/compiler/aslrestype2e.c +@@ -82,6 +82,13 @@ RsDoExtendedIoDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; @@ -1108,7 +1108,7 @@ Index: foo/source/compiler/aslrestype2e.c UINT32 i; -@@ -96,9 +103,10 @@ +@@ -96,9 +103,10 @@ RsDoExtendedIoDescriptor ( Descriptor->ExtAddress64.ResourceType = ACPI_ADDRESS_TYPE_IO_RANGE; Descriptor->ExtAddress64.RevisionID = AML_RESOURCE_EXTENDED_ADDRESS_REVISION; @@ -1121,7 +1121,7 @@ Index: foo/source/compiler/aslrestype2e.c /* Process all child initialization nodes */ -@@ -141,7 +149,7 @@ +@@ -141,7 +149,7 @@ RsDoExtendedIoDescriptor ( case 5: /* Address Granularity */ @@ -1130,7 +1130,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Granularity)); GranOp = InitializerOp; -@@ -149,7 +157,7 @@ +@@ -149,7 +157,7 @@ RsDoExtendedIoDescriptor ( case 6: /* Address Min */ @@ -1139,7 +1139,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Minimum)); MinOp = InitializerOp; -@@ -157,7 +165,7 @@ +@@ -157,7 +165,7 @@ RsDoExtendedIoDescriptor ( case 7: /* Address Max */ @@ -1148,7 +1148,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Maximum)); MaxOp = InitializerOp; -@@ -165,14 +173,14 @@ +@@ -165,14 +173,14 @@ RsDoExtendedIoDescriptor ( case 8: /* Translation Offset */ @@ -1165,7 +1165,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.AddressLength)); LengthOp = InitializerOp; -@@ -180,7 +188,7 @@ +@@ -180,7 +188,7 @@ RsDoExtendedIoDescriptor ( case 10: /* Type-Specific Attributes */ @@ -1174,7 +1174,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_TYPESPECIFICATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TypeSpecific)); break; -@@ -216,13 +224,20 @@ +@@ -216,13 +224,20 @@ RsDoExtendedIoDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1199,7 +1199,7 @@ Index: foo/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); } -@@ -255,6 +270,13 @@ +@@ -255,6 +270,13 @@ RsDoExtendedMemoryDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; @@ -1213,7 +1213,7 @@ Index: foo/source/compiler/aslrestype2e.c UINT32 i; -@@ -269,9 +291,10 @@ +@@ -269,9 +291,10 @@ RsDoExtendedMemoryDescriptor ( Descriptor->ExtAddress64.ResourceType = ACPI_ADDRESS_TYPE_MEMORY_RANGE; Descriptor->ExtAddress64.RevisionID = AML_RESOURCE_EXTENDED_ADDRESS_REVISION; @@ -1226,7 +1226,7 @@ Index: foo/source/compiler/aslrestype2e.c /* Process all child initialization nodes */ -@@ -321,7 +344,7 @@ +@@ -321,7 +344,7 @@ RsDoExtendedMemoryDescriptor ( case 6: /* Address Granularity */ @@ -1235,7 +1235,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Granularity)); GranOp = InitializerOp; -@@ -329,7 +352,7 @@ +@@ -329,7 +352,7 @@ RsDoExtendedMemoryDescriptor ( case 7: /* Min Address */ @@ -1244,7 +1244,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Minimum)); MinOp = InitializerOp; -@@ -337,7 +360,7 @@ +@@ -337,7 +360,7 @@ RsDoExtendedMemoryDescriptor ( case 8: /* Max Address */ @@ -1253,7 +1253,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Maximum)); MaxOp = InitializerOp; -@@ -345,14 +368,14 @@ +@@ -345,14 +368,14 @@ RsDoExtendedMemoryDescriptor ( case 9: /* Translation Offset */ @@ -1270,7 +1270,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.AddressLength)); LengthOp = InitializerOp; -@@ -360,7 +383,7 @@ +@@ -360,7 +383,7 @@ RsDoExtendedMemoryDescriptor ( case 11: /* Type-Specific Attributes */ @@ -1279,7 +1279,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_TYPESPECIFICATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TypeSpecific)); break; -@@ -397,13 +420,20 @@ +@@ -397,13 +420,20 @@ RsDoExtendedMemoryDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1304,7 +1304,7 @@ Index: foo/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); } -@@ -436,6 +466,13 @@ +@@ -436,6 +466,13 @@ RsDoExtendedSpaceDescriptor ( ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; @@ -1318,7 +1318,7 @@ Index: foo/source/compiler/aslrestype2e.c UINT32 i; -@@ -449,9 +486,10 @@ +@@ -449,9 +486,10 @@ RsDoExtendedSpaceDescriptor ( Descriptor->ExtAddress64.DescriptorType = ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64; Descriptor->ExtAddress64.RevisionID = AML_RESOURCE_EXTENDED_ADDRESS_REVISION; @@ -1331,7 +1331,7 @@ Index: foo/source/compiler/aslrestype2e.c /* Process all child initialization nodes */ -@@ -499,7 +537,7 @@ +@@ -499,7 +537,7 @@ RsDoExtendedSpaceDescriptor ( case 6: /* Address Granularity */ @@ -1340,7 +1340,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Granularity)); GranOp = InitializerOp; -@@ -507,7 +545,7 @@ +@@ -507,7 +545,7 @@ RsDoExtendedSpaceDescriptor ( case 7: /* Min Address */ @@ -1349,7 +1349,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Minimum)); MinOp = InitializerOp; -@@ -515,7 +553,7 @@ +@@ -515,7 +553,7 @@ RsDoExtendedSpaceDescriptor ( case 8: /* Max Address */ @@ -1358,7 +1358,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Maximum)); MaxOp = InitializerOp; -@@ -523,14 +561,14 @@ +@@ -523,14 +561,14 @@ RsDoExtendedSpaceDescriptor ( case 9: /* Translation Offset */ @@ -1375,7 +1375,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.AddressLength)); LengthOp = InitializerOp; -@@ -538,7 +576,7 @@ +@@ -538,7 +576,7 @@ RsDoExtendedSpaceDescriptor ( case 11: /* Type-Specific Attributes */ @@ -1384,7 +1384,7 @@ Index: foo/source/compiler/aslrestype2e.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_TYPESPECIFICATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TypeSpecific)); break; -@@ -560,13 +598,20 @@ +@@ -560,13 +598,20 @@ RsDoExtendedSpaceDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1409,11 +1409,11 @@ Index: foo/source/compiler/aslrestype2e.c Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); } -Index: foo/source/compiler/aslrestype2q.c -=================================================================== ---- foo.orig/source/compiler/aslrestype2q.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype2q.c 2013-08-26 13:45:58.000000000 -0600 -@@ -84,7 +84,13 @@ +diff --git a/source/compiler/aslrestype2q.c b/source/compiler/aslrestype2q.c +index 65c242a..c92d545 100644 +--- a/source/compiler/aslrestype2q.c ++++ b/source/compiler/aslrestype2q.c +@@ -84,7 +84,13 @@ RsDoQwordIoDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -1427,7 +1427,7 @@ Index: foo/source/compiler/aslrestype2q.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -104,8 +110,7 @@ +@@ -104,8 +110,7 @@ RsDoQwordIoDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS64); @@ -1437,7 +1437,7 @@ Index: foo/source/compiler/aslrestype2q.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -149,7 +154,7 @@ +@@ -149,7 +154,7 @@ RsDoQwordIoDescriptor ( case 5: /* Address Granularity */ @@ -1446,7 +1446,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Granularity)); GranOp = InitializerOp; -@@ -157,7 +162,7 @@ +@@ -157,7 +162,7 @@ RsDoQwordIoDescriptor ( case 6: /* Address Min */ @@ -1455,7 +1455,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Minimum)); MinOp = InitializerOp; -@@ -165,7 +170,7 @@ +@@ -165,7 +170,7 @@ RsDoQwordIoDescriptor ( case 7: /* Address Max */ @@ -1464,7 +1464,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Maximum)); MaxOp = InitializerOp; -@@ -173,14 +178,14 @@ +@@ -173,14 +178,14 @@ RsDoQwordIoDescriptor ( case 8: /* Translation Offset */ @@ -1481,7 +1481,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.AddressLength)); LengthOp = InitializerOp; -@@ -192,7 +197,7 @@ +@@ -192,7 +197,7 @@ RsDoQwordIoDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -1490,7 +1490,7 @@ Index: foo/source/compiler/aslrestype2q.c ResSourceIndex = TRUE; } break; -@@ -204,8 +209,7 @@ +@@ -204,8 +209,7 @@ RsDoQwordIoDescriptor ( { if (StringLength) { @@ -1500,7 +1500,7 @@ Index: foo/source/compiler/aslrestype2q.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -265,13 +269,20 @@ +@@ -265,13 +269,20 @@ RsDoQwordIoDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1525,7 +1525,7 @@ Index: foo/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -@@ -306,7 +317,13 @@ +@@ -306,7 +317,13 @@ RsDoQwordMemoryDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -1539,7 +1539,7 @@ Index: foo/source/compiler/aslrestype2q.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -326,8 +343,7 @@ +@@ -326,8 +343,7 @@ RsDoQwordMemoryDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS64); @@ -1549,7 +1549,7 @@ Index: foo/source/compiler/aslrestype2q.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -378,7 +394,7 @@ +@@ -378,7 +394,7 @@ RsDoQwordMemoryDescriptor ( case 6: /* Address Granularity */ @@ -1558,7 +1558,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Granularity)); GranOp = InitializerOp; -@@ -386,7 +402,7 @@ +@@ -386,7 +402,7 @@ RsDoQwordMemoryDescriptor ( case 7: /* Min Address */ @@ -1567,7 +1567,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Minimum)); MinOp = InitializerOp; -@@ -394,7 +410,7 @@ +@@ -394,7 +410,7 @@ RsDoQwordMemoryDescriptor ( case 8: /* Max Address */ @@ -1576,7 +1576,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Maximum)); MaxOp = InitializerOp; -@@ -402,14 +418,14 @@ +@@ -402,14 +418,14 @@ RsDoQwordMemoryDescriptor ( case 9: /* Translation Offset */ @@ -1593,7 +1593,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.AddressLength)); LengthOp = InitializerOp; -@@ -421,7 +437,7 @@ +@@ -421,7 +437,7 @@ RsDoQwordMemoryDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -1602,7 +1602,7 @@ Index: foo/source/compiler/aslrestype2q.c ResSourceIndex = TRUE; } break; -@@ -433,8 +449,7 @@ +@@ -433,8 +449,7 @@ RsDoQwordMemoryDescriptor ( { if (StringLength) { @@ -1612,7 +1612,7 @@ Index: foo/source/compiler/aslrestype2q.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -495,13 +510,20 @@ +@@ -495,13 +510,20 @@ RsDoQwordMemoryDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1637,7 +1637,7 @@ Index: foo/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -@@ -536,8 +558,14 @@ +@@ -536,8 +558,14 @@ RsDoQwordSpaceDescriptor ( ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; @@ -1652,7 +1652,7 @@ Index: foo/source/compiler/aslrestype2q.c BOOLEAN ResSourceIndex = FALSE; -@@ -555,8 +583,7 @@ +@@ -555,8 +583,7 @@ RsDoQwordSpaceDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS64); @@ -1662,7 +1662,7 @@ Index: foo/source/compiler/aslrestype2q.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -605,7 +632,7 @@ +@@ -605,7 +632,7 @@ RsDoQwordSpaceDescriptor ( case 6: /* Address Granularity */ @@ -1671,7 +1671,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Granularity)); GranOp = InitializerOp; -@@ -613,7 +640,7 @@ +@@ -613,7 +640,7 @@ RsDoQwordSpaceDescriptor ( case 7: /* Min Address */ @@ -1680,7 +1680,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Minimum)); MinOp = InitializerOp; -@@ -621,7 +648,7 @@ +@@ -621,7 +648,7 @@ RsDoQwordSpaceDescriptor ( case 8: /* Max Address */ @@ -1689,7 +1689,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Maximum)); MaxOp = InitializerOp; -@@ -629,14 +656,14 @@ +@@ -629,14 +656,14 @@ RsDoQwordSpaceDescriptor ( case 9: /* Translation Offset */ @@ -1706,7 +1706,7 @@ Index: foo/source/compiler/aslrestype2q.c RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.AddressLength)); LengthOp = InitializerOp; -@@ -648,7 +675,7 @@ +@@ -648,7 +675,7 @@ RsDoQwordSpaceDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -1715,7 +1715,7 @@ Index: foo/source/compiler/aslrestype2q.c ResSourceIndex = TRUE; } break; -@@ -660,8 +687,7 @@ +@@ -660,8 +687,7 @@ RsDoQwordSpaceDescriptor ( { if (StringLength) { @@ -1725,7 +1725,7 @@ Index: foo/source/compiler/aslrestype2q.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -707,13 +733,20 @@ +@@ -707,13 +733,20 @@ RsDoQwordSpaceDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -1750,11 +1750,11 @@ Index: foo/source/compiler/aslrestype2q.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); -Index: foo/source/compiler/aslrestype2s.c -=================================================================== ---- foo.orig/source/compiler/aslrestype2s.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype2s.c 2013-08-26 13:45:58.000000000 -0600 -@@ -293,6 +293,9 @@ +diff --git a/source/compiler/aslrestype2s.c b/source/compiler/aslrestype2s.c +index a9d24cd..4d9c7db 100644 +--- a/source/compiler/aslrestype2s.c ++++ b/source/compiler/aslrestype2s.c +@@ -293,6 +293,9 @@ RsDoGpioIntDescriptor ( UINT16 VendorLength; UINT16 InterruptLength; UINT16 DescriptorSize; @@ -1764,7 +1764,7 @@ Index: foo/source/compiler/aslrestype2s.c UINT32 i; -@@ -348,21 +351,21 @@ +@@ -348,21 +351,21 @@ RsDoGpioIntDescriptor ( { case 0: /* Interrupt Mode - edge/level [Flag] (_MOD) */ @@ -1789,7 +1789,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 3, 2); break; -@@ -376,7 +379,7 @@ +@@ -376,7 +379,7 @@ RsDoGpioIntDescriptor ( case 4: /* Debounce Timeout [WORD] (_DBT) */ @@ -1798,7 +1798,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateWordField (InitializerOp, ACPI_RESTAG_DEBOUNCETIME, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.DebounceTimeout)); break; -@@ -402,7 +405,7 @@ +@@ -402,7 +405,7 @@ RsDoGpioIntDescriptor ( case 7: /* Resource Usage (consumer/producer) */ @@ -1807,7 +1807,7 @@ Index: foo/source/compiler/aslrestype2s.c break; case 8: /* Resource Tag (Descriptor Name) */ -@@ -466,6 +469,10 @@ +@@ -466,6 +469,10 @@ RsDoGpioIntDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1818,7 +1818,7 @@ Index: foo/source/compiler/aslrestype2s.c return (Rnode); } -@@ -499,6 +506,10 @@ +@@ -499,6 +506,10 @@ RsDoGpioIoDescriptor ( UINT16 VendorLength; UINT16 InterruptLength; UINT16 DescriptorSize; @@ -1829,7 +1829,7 @@ Index: foo/source/compiler/aslrestype2s.c UINT32 i; -@@ -554,7 +565,7 @@ +@@ -554,7 +565,7 @@ RsDoGpioIoDescriptor ( { case 0: /* Share Type [Flags] (_SHR) */ @@ -1838,7 +1838,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 3); break; -@@ -568,21 +579,21 @@ +@@ -568,21 +579,21 @@ RsDoGpioIoDescriptor ( case 2: /* Debounce Timeout [WORD] (_DBT) */ @@ -1863,7 +1863,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_IORESTRICTION, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 0, 2); break; -@@ -608,7 +619,7 @@ +@@ -608,7 +619,7 @@ RsDoGpioIoDescriptor ( case 7: /* Resource Usage (consumer/producer) */ @@ -1872,7 +1872,7 @@ Index: foo/source/compiler/aslrestype2s.c break; case 8: /* Resource Tag (Descriptor Name) */ -@@ -671,6 +682,11 @@ +@@ -671,6 +683,11 @@ RsDoGpioIoDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1884,7 +1884,7 @@ Index: foo/source/compiler/aslrestype2s.c return (Rnode); } -@@ -702,6 +718,9 @@ +@@ -702,6 +719,9 @@ RsDoI2cSerialBusDescriptor ( UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; @@ -1894,7 +1894,7 @@ Index: foo/source/compiler/aslrestype2s.c UINT32 i; -@@ -749,7 +768,7 @@ +@@ -749,7 +769,7 @@ RsDoI2cSerialBusDescriptor ( { case 0: /* Slave Address [WORD] (_ADR) */ @@ -1903,7 +1903,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateWordField (InitializerOp, ACPI_RESTAG_ADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.SlaveAddress)); break; -@@ -763,14 +782,14 @@ +@@ -763,14 +783,14 @@ RsDoI2cSerialBusDescriptor ( case 2: /* Connection Speed [DWORD] (_SPE) */ @@ -1920,7 +1920,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.TypeSpecificFlags), 0); break; -@@ -818,6 +837,9 @@ +@@ -818,6 +837,9 @@ RsDoI2cSerialBusDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1930,7 +1930,7 @@ Index: foo/source/compiler/aslrestype2s.c return (Rnode); } -@@ -849,6 +871,9 @@ +@@ -849,6 +871,9 @@ RsDoSpiSerialBusDescriptor ( UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; @@ -1940,7 +1940,7 @@ Index: foo/source/compiler/aslrestype2s.c UINT32 i; -@@ -896,21 +921,21 @@ +@@ -896,21 +921,21 @@ RsDoSpiSerialBusDescriptor ( { case 0: /* Device Selection [WORD] (_ADR) */ @@ -1965,7 +1965,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.TypeSpecificFlags), 0); break; -@@ -931,7 +956,7 @@ +@@ -931,7 +956,7 @@ RsDoSpiSerialBusDescriptor ( case 5: /* Connection Speed [DWORD] (_SPE) */ @@ -1974,7 +1974,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateDwordField (InitializerOp, ACPI_RESTAG_SPEED, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.ConnectionSpeed)); break; -@@ -993,6 +1018,10 @@ +@@ -993,6 +1017,10 @@ RsDoSpiSerialBusDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -1985,7 +1985,7 @@ Index: foo/source/compiler/aslrestype2s.c return (Rnode); } -@@ -1024,6 +1053,10 @@ +@@ -1024,6 +1052,10 @@ RsDoUartSerialBusDescriptor ( UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; @@ -1996,7 +1996,7 @@ Index: foo/source/compiler/aslrestype2s.c UINT32 i; -@@ -1071,21 +1104,21 @@ +@@ -1071,21 +1103,21 @@ RsDoUartSerialBusDescriptor ( { case 0: /* Connection Speed (Baud Rate) [DWORD] (_SPE) */ @@ -2021,7 +2021,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_STOPBITS, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 2, 2); break; -@@ -1099,7 +1132,7 @@ +@@ -1099,7 +1131,7 @@ RsDoUartSerialBusDescriptor ( case 4: /* Endianness [Flag] (_END) */ @@ -2030,7 +2030,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateBitField (InitializerOp, ACPI_RESTAG_ENDIANNESS, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 7); break; -@@ -1113,21 +1146,21 @@ +@@ -1113,21 +1145,21 @@ RsDoUartSerialBusDescriptor ( case 6: /* Flow Control [Flags] (_FLC) */ @@ -2055,7 +2055,7 @@ Index: foo/source/compiler/aslrestype2s.c RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH_TX, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TxFifoSize)); break; -@@ -1185,5 +1218,10 @@ +@@ -1185,5 +1216,10 @@ RsDoUartSerialBusDescriptor ( InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } @@ -2066,11 +2066,11 @@ Index: foo/source/compiler/aslrestype2s.c + return (Rnode); } -Index: foo/source/compiler/aslrestype2w.c -=================================================================== ---- foo.orig/source/compiler/aslrestype2w.c 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/compiler/aslrestype2w.c 2013-08-26 13:45:58.000000000 -0600 -@@ -85,6 +85,12 @@ +diff --git a/source/compiler/aslrestype2w.c b/source/compiler/aslrestype2w.c +index 79d7bcc..77acbcc 100644 +--- a/source/compiler/aslrestype2w.c ++++ b/source/compiler/aslrestype2w.c +@@ -85,6 +85,12 @@ RsDoWordIoDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; @@ -2083,7 +2083,7 @@ Index: foo/source/compiler/aslrestype2w.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -104,8 +110,7 @@ +@@ -104,8 +110,7 @@ RsDoWordIoDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS16); @@ -2093,7 +2093,7 @@ Index: foo/source/compiler/aslrestype2w.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -149,7 +154,7 @@ +@@ -149,7 +154,7 @@ RsDoWordIoDescriptor ( case 5: /* Address Granularity */ @@ -2102,7 +2102,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Granularity)); GranOp = InitializerOp; -@@ -157,7 +162,7 @@ +@@ -157,7 +162,7 @@ RsDoWordIoDescriptor ( case 6: /* Address Min */ @@ -2111,7 +2111,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Minimum)); MinOp = InitializerOp; -@@ -165,7 +170,7 @@ +@@ -165,7 +170,7 @@ RsDoWordIoDescriptor ( case 7: /* Address Max */ @@ -2120,7 +2120,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Maximum)); MaxOp = InitializerOp; -@@ -173,14 +178,14 @@ +@@ -173,14 +178,14 @@ RsDoWordIoDescriptor ( case 8: /* Translation Offset */ @@ -2137,7 +2137,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.AddressLength)); LengthOp = InitializerOp; -@@ -192,7 +197,7 @@ +@@ -192,7 +197,7 @@ RsDoWordIoDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -2146,7 +2146,7 @@ Index: foo/source/compiler/aslrestype2w.c ResSourceIndex = TRUE; } break; -@@ -204,8 +209,7 @@ +@@ -204,8 +209,7 @@ RsDoWordIoDescriptor ( { if (StringLength) { @@ -2156,7 +2156,7 @@ Index: foo/source/compiler/aslrestype2w.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -265,13 +269,20 @@ +@@ -265,13 +269,20 @@ RsDoWordIoDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -2181,7 +2181,7 @@ Index: foo/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -@@ -307,6 +318,12 @@ +@@ -307,6 +318,12 @@ RsDoWordBusNumberDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; @@ -2194,7 +2194,7 @@ Index: foo/source/compiler/aslrestype2w.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -326,8 +343,7 @@ +@@ -326,8 +343,7 @@ RsDoWordBusNumberDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS16); @@ -2204,7 +2204,7 @@ Index: foo/source/compiler/aslrestype2w.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -364,8 +380,7 @@ +@@ -364,8 +380,7 @@ RsDoWordBusNumberDescriptor ( case 4: /* Address Granularity */ @@ -2214,7 +2214,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Granularity)); GranOp = InitializerOp; -@@ -373,8 +388,7 @@ +@@ -373,8 +388,7 @@ RsDoWordBusNumberDescriptor ( case 5: /* Min Address */ @@ -2224,7 +2224,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Minimum)); MinOp = InitializerOp; -@@ -382,8 +396,7 @@ +@@ -382,8 +396,7 @@ RsDoWordBusNumberDescriptor ( case 6: /* Max Address */ @@ -2234,7 +2234,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Maximum)); MaxOp = InitializerOp; -@@ -391,16 +404,14 @@ +@@ -391,16 +404,14 @@ RsDoWordBusNumberDescriptor ( case 7: /* Translation Offset */ @@ -2253,7 +2253,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.AddressLength)); LengthOp = InitializerOp; -@@ -412,7 +423,7 @@ +@@ -412,7 +423,7 @@ RsDoWordBusNumberDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -2262,7 +2262,7 @@ Index: foo/source/compiler/aslrestype2w.c ResSourceIndex = TRUE; } break; -@@ -424,8 +435,7 @@ +@@ -424,8 +435,7 @@ RsDoWordBusNumberDescriptor ( { if (StringLength) { @@ -2272,7 +2272,7 @@ Index: foo/source/compiler/aslrestype2w.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -471,13 +481,20 @@ +@@ -471,13 +481,20 @@ RsDoWordBusNumberDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -2297,7 +2297,7 @@ Index: foo/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -@@ -513,6 +530,12 @@ +@@ -513,6 +530,12 @@ RsDoWordSpaceDescriptor ( UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; @@ -2310,7 +2310,7 @@ Index: foo/source/compiler/aslrestype2w.c UINT32 i; BOOLEAN ResSourceIndex = FALSE; -@@ -531,8 +554,7 @@ +@@ -531,8 +554,7 @@ RsDoWordSpaceDescriptor ( * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS16); @@ -2320,7 +2320,7 @@ Index: foo/source/compiler/aslrestype2w.c sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ -@@ -581,8 +603,7 @@ +@@ -581,8 +603,7 @@ RsDoWordSpaceDescriptor ( case 6: /* Address Granularity */ @@ -2330,7 +2330,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Granularity)); GranOp = InitializerOp; -@@ -590,8 +611,7 @@ +@@ -590,8 +611,7 @@ RsDoWordSpaceDescriptor ( case 7: /* Min Address */ @@ -2340,7 +2340,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Minimum)); MinOp = InitializerOp; -@@ -599,8 +619,7 @@ +@@ -599,8 +619,7 @@ RsDoWordSpaceDescriptor ( case 8: /* Max Address */ @@ -2350,7 +2350,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Maximum)); MaxOp = InitializerOp; -@@ -608,16 +627,14 @@ +@@ -608,16 +627,14 @@ RsDoWordSpaceDescriptor ( case 9: /* Translation Offset */ @@ -2369,7 +2369,7 @@ Index: foo/source/compiler/aslrestype2w.c RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.AddressLength)); LengthOp = InitializerOp; -@@ -629,7 +646,7 @@ +@@ -629,7 +646,7 @@ RsDoWordSpaceDescriptor ( { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; @@ -2378,7 +2378,7 @@ Index: foo/source/compiler/aslrestype2w.c ResSourceIndex = TRUE; } break; -@@ -641,8 +658,7 @@ +@@ -641,8 +658,7 @@ RsDoWordSpaceDescriptor ( { if (StringLength) { @@ -2388,7 +2388,7 @@ Index: foo/source/compiler/aslrestype2w.c strcpy ((char *) &OptionalFields[OptionIndex], -@@ -688,13 +704,20 @@ +@@ -688,13 +704,20 @@ RsDoWordSpaceDescriptor ( /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( @@ -2413,11 +2413,11 @@ Index: foo/source/compiler/aslrestype2w.c Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); -Index: foo/source/include/acmacros.h -=================================================================== ---- foo.orig/source/include/acmacros.h 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/include/acmacros.h 2013-08-26 13:45:58.000000000 -0600 -@@ -107,7 +107,8 @@ +diff --git a/source/include/acmacros.h b/source/include/acmacros.h +index ee9e745..67fb983 100644 +--- a/source/include/acmacros.h ++++ b/source/include/acmacros.h +@@ -111,7 +111,8 @@ /* 32-bit source, 16/32/64 destination */ @@ -2427,7 +2427,7 @@ Index: foo/source/include/acmacros.h #define ACPI_MOVE_32_TO_32(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[3];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[2];\ -@@ -122,9 +123,13 @@ +@@ -126,9 +127,13 @@ /* 64-bit source, 16/32/64 destination */ @@ -2443,7 +2443,7 @@ Index: foo/source/include/acmacros.h #define ACPI_MOVE_64_TO_64(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[7];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[6];\ -@@ -151,7 +156,9 @@ +@@ -155,7 +160,9 @@ /* 32-bit source, 16/32/64 destination */ @@ -2454,16 +2454,26 @@ Index: foo/source/include/acmacros.h #define ACPI_MOVE_32_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT32 *)(void *)(s) #define ACPI_MOVE_32_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT32 *)(void *)(s) -Index: foo/source/include/platform/aclinux.h -=================================================================== ---- foo.orig/source/include/platform/aclinux.h 2013-08-26 13:45:58.000000000 -0600 -+++ foo/source/include/platform/aclinux.h 2013-08-26 13:45:58.000000000 -0600 +diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux.h +index 3bc85bc..1bace7f 100644 +--- a/source/include/platform/aclinux.h ++++ b/source/include/platform/aclinux.h @@ -83,13 +83,14 @@ #include #include #include +#include + /* Define/disable kernel-specific declarators */ + + #ifndef __init + #define __init + #endif + + #ifndef __iomem + #define __iomem + #endif + /* Host-dependent types and defines for user-space ACPICA */ #define ACPI_FLUSH_CPU_CACHE() @@ -2474,7 +2484,7 @@ Index: foo/source/include/platform/aclinux.h #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long #define COMPILER_DEPENDENT_UINT64 unsigned long -@@ -100,6 +100,10 @@ +@@ -100,6 +99,10 @@ #define ACPI_USE_NATIVE_DIVIDE #endif @@ -2485,3 +2495,6 @@ Index: foo/source/include/platform/aclinux.h #ifndef __cdecl #define __cdecl #endif +-- +1.7.12.1 + diff --git a/debian/patches/debian-unaligned.patch b/debian/patches/debian-unaligned.patch index ce59177..a8704ea 100644 --- a/debian/patches/debian-unaligned.patch +++ b/debian/patches/debian-unaligned.patch @@ -15,11 +15,11 @@ Signed-off-by: Paolo Bonzini source/include/actypes.h | 26 +++++++++++++------------- 3 file modificati, 32 inserzioni(+), 21 rimozioni(-) -Index: foo/source/compiler/asltree.c -=================================================================== ---- foo.orig/source/compiler/asltree.c 2013-08-26 13:46:12.000000000 -0600 -+++ foo/source/compiler/asltree.c 2013-08-26 13:46:12.000000000 -0600 -@@ -577,28 +577,31 @@ +diff --git a/source/compiler/asltree.c b/source/compiler/asltree.c +index ebf87f3..fd859d7 100644 +--- a/source/compiler/asltree.c ++++ b/source/compiler/asltree.c +@@ -577,28 +577,31 @@ TrCreateValuedLeafNode ( "\nCreateValuedLeafNode Ln/Col %u/%u NewNode %p Op %s Value %8.8X%8.8X ", Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName(ParseOpcode), ACPI_FORMAT_UINT64 (Value)); @@ -28,53 +28,53 @@ Index: foo/source/compiler/asltree.c switch (ParseOpcode) { case PARSEOP_STRING_LITERAL: - + - DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Op->Asl.Value.String); break; case PARSEOP_NAMESEG: - + - DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Op->Asl.Value.String); break; case PARSEOP_NAMESTRING: - + - DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Op->Asl.Value.String); break; case PARSEOP_EISAID: - + - DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Op->Asl.Value.String); break; case PARSEOP_METHOD: -@@ -608,11 +611,13 @@ +@@ -608,11 +610,13 @@ TrCreateValuedLeafNode ( case PARSEOP_INTEGER: - + + Op->Asl.Value.Integer = Value; DbgPrint (ASL_PARSE_OUTPUT, "INTEGER"); break; default: - + + Op->Asl.Value.Integer = Value; break; } -Index: foo/source/components/executer/exoparg2.c -=================================================================== ---- foo.orig/source/components/executer/exoparg2.c 2013-08-26 13:46:12.000000000 -0600 -+++ foo/source/components/executer/exoparg2.c 2013-08-26 13:46:12.000000000 -0600 -@@ -175,6 +175,8 @@ +diff --git a/source/components/executer/exoparg2.c b/source/components/executer/exoparg2.c +index e55f40c..ed5b1fd 100644 +--- a/source/components/executer/exoparg2.c ++++ b/source/components/executer/exoparg2.c +@@ -175,6 +176,8 @@ AcpiExOpcode_2A_2T_1R ( ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL; ACPI_OPERAND_OBJECT *ReturnDesc2 = NULL; @@ -83,7 +83,7 @@ Index: foo/source/components/executer/exoparg2.c ACPI_STATUS Status; -@@ -208,8 +210,10 @@ +@@ -208,8 +211,10 @@ AcpiExOpcode_2A_2T_1R ( Status = AcpiUtDivide (Operand[0]->Integer.Value, Operand[1]->Integer.Value, @@ -96,7 +96,7 @@ Index: foo/source/components/executer/exoparg2.c if (ACPI_FAILURE (Status)) { goto Cleanup; -@@ -283,6 +287,7 @@ +@@ -283,6 +285,7 @@ AcpiExOpcode_2A_1T_1R ( ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; UINT64 Index; @@ -104,7 +104,7 @@ Index: foo/source/components/executer/exoparg2.c ACPI_STATUS Status = AE_OK; ACPI_SIZE Length = 0; -@@ -326,7 +331,8 @@ +@@ -326,7 +333,8 @@ AcpiExOpcode_2A_1T_1R ( Status = AcpiUtDivide (Operand[0]->Integer.Value, Operand[1]->Integer.Value, NULL, @@ -114,11 +114,11 @@ Index: foo/source/components/executer/exoparg2.c break; case AML_CONCAT_OP: /* Concatenate (Data1, Data2, Result) */ -Index: foo/source/include/actypes.h -=================================================================== ---- foo.orig/source/include/actypes.h 2013-08-26 13:46:12.000000000 -0600 -+++ foo/source/include/actypes.h 2013-08-26 13:46:12.000000000 -0600 -@@ -142,6 +142,19 @@ +diff --git a/source/include/actypes.h b/source/include/actypes.h +index 07fb7d5..08bdf2f 100644 +--- a/source/include/actypes.h ++++ b/source/include/actypes.h +@@ -142,6 +155,19 @@ typedef COMPILER_DEPENDENT_INT64 INT64; */ #define ACPI_THREAD_ID UINT64 @@ -138,7 +138,7 @@ Index: foo/source/include/actypes.h /******************************************************************************* * -@@ -168,19 +181,6 @@ +@@ -168,19 +181,6 @@ typedef UINT64 ACPI_PHYSICAL_ADDRESS; #define ACPI_SIZE_MAX ACPI_UINT64_MAX #define ACPI_USE_NATIVE_DIVIDE /* Has native 64-bit integer support */ @@ -158,3 +158,6 @@ Index: foo/source/include/actypes.h /******************************************************************************* * +-- +1.7.12.1 + diff --git a/debian/patches/name-miscompare.patch b/debian/patches/name-miscompare.patch index 4dee585..0d686db 100644 --- a/debian/patches/name-miscompare.patch +++ b/debian/patches/name-miscompare.patch @@ -4,10 +4,9 @@ to be compared were being treated as 32-bit ints, and not strings. Hence, the characters were re-ordered incorrectly, mismatching the assumptions made in the remainder of the function. -Index: acpica-unix-20130517/source/compiler/aslanalyze.c -=================================================================== ---- acpica-unix-20130517.orig/source/compiler/aslanalyze.c 2013-05-28 20:56:34.000000000 -0600 -+++ acpica-unix-20130517/source/compiler/aslanalyze.c 2013-05-28 20:56:34.000000000 -0600 +diff -urN acpica-unix2-20130214/source/compiler/aslanalyze.c acpica-unix2-20130214-names/source/compiler/aslanalyze.c +--- acpica-unix2-20130214/source/compiler/aslanalyze.c 2013-03-21 17:31:25.803324990 -0600 ++++ acpica-unix2-20130214-names/source/compiler/aslanalyze.c 2013-03-21 17:43:45.357616802 -0600 @@ -446,7 +446,7 @@ /* Need a null-terminated string version of NameSeg */ diff --git a/debian/patches/series b/debian/patches/series index 993f22e..b7d4082 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ add-testing.patch name-miscompare.patch aapits-linux.patch asllookup-miscompare.patch +aapits-makefile.patch