Skip to content

Commit

Permalink
Merge pull request #54 from juikim/master
Browse files Browse the repository at this point in the history
iASL: Add two workarounds for a very old GCC bug.
  • Loading branch information
acpibob committed Mar 12, 2015
2 parents 20dc906 + 6b3cb49 commit 5277204
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/compiler/aslmapenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,16 @@ MpCreateGpioInfo (
ACPI_GPIO_INFO *Info;
ACPI_GPIO_INFO *NextGpio;
ACPI_GPIO_INFO *PrevGpio;
char *Buffer;


/*
* Allocate a new info block and insert it into the global GPIO list
* sorted by both source device name and then the pin number. There is
* one block per pin.
*/
Info = ACPI_CAST_PTR (ACPI_GPIO_INFO,
UtStringCacheCalloc (sizeof (ACPI_GPIO_INFO)));
Buffer = UtStringCacheCalloc (sizeof (ACPI_GPIO_INFO));
Info = ACPI_CAST_PTR (ACPI_GPIO_INFO, Buffer);

NextGpio = Gbl_GpioList;
PrevGpio = NULL;
Expand Down Expand Up @@ -365,14 +366,15 @@ MpCreateSerialInfo (
ACPI_SERIAL_INFO *Info;
ACPI_SERIAL_INFO *NextSerial;
ACPI_SERIAL_INFO *PrevSerial;
char *Buffer;


/*
* Allocate a new info block and insert it into the global Serial list
* sorted by both source device name and then the address.
*/
Info = ACPI_CAST_PTR (ACPI_SERIAL_INFO,
UtStringCacheCalloc (sizeof (ACPI_SERIAL_INFO)));
Buffer = UtStringCacheCalloc (sizeof (ACPI_SERIAL_INFO));
Info = ACPI_CAST_PTR (ACPI_SERIAL_INFO, Buffer);

NextSerial = Gbl_SerialList;
PrevSerial = NULL;
Expand Down

0 comments on commit 5277204

Please sign in to comment.