Jump to content

DSDT disass+compile: newest iASLme / IASL :, Juli 11th 2012


  • Please log in to reply
266 replies to this topic

#221
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house
Summary of iASL changes for version 20120215, February 15th 2012:
1) ACPICA Core Subsystem _linenums:0'>[color=#000000]1) ACPICA Core Subsystem:There have been some major changes to the sleep/wake support code, asdescribed below (a - e).a) The AcpiLeaveSleepState has been split into two interfaces, similar toAcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface isAcpiLeaveSleepStatePrep. This allows the host to perform actions between thetime the _BFS method is called and the _WAK method is called. NOTE: all hostsmust update their wake/resume code or else sleep/wake will not work properly.Rafael Wysocki. <img src='http://www.insanelymac.com/forum/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' /> In AcpiLeaveSleepState, now enable all runtime GPEs before calling the _WAKmethod. Some machines require that the GPEs are enabled before the _WAK methodis executed. Thomas Renninger.c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit.Some BIOS code assumes that WAK_STS will be cleared on resume and use it todetermine whether the system is rebooting or resuming. Matthew Garrett.d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From Sleep) tomatch the ACPI specification requirement. Rafael Wysocki.e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControlregisters within the V5 FADT. This support adds two new files:hardware/hwesleep.c implements the support for the new registers. Moved allsleep/wake external interfaces to hardware/hwxfsleep.c.Added a new OSL interface for ACPI table overrides,AcpiOsPhysicalTableOverride. This interface allows the host to override atable via a physical address, instead of the logical address required byAcpiOsTableOverride. This simplifies the host implementation. Initialimplementation by Thomas Renninger. The ACPICA implementation creates a singleshared function for table overrides that attempts both a logical and aphysical override.Expanded the OSL memory read/write interfaces to 64-bit data(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memorytransfer support for GAS register structures passed to AcpiRead and AcpiWrite.Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a custombuild of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) model.See the ACPICA reference for details. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=942"]ACPICA BZ 942[/url]. This option removes about10% of the code and 5% of the static data, and the following hardware ACPIfeatures become unavailable:	PM Event and Control registers	SCI interrupt (and handler)	Fixed Events	General Purpose Events (GPEs)	Global Lock	ACPI PM timer	FACS table (Waking vectors and Global Lock)Updated the unix tarball directory structure to match the ACPICA git sourcetree. This ensures that the generic unix makefiles work properly (ingenerate/unix).  Also updated the Linux makefiles to match. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=867"]ACPICA BZ 867[/url].Updated the return value of the _REV predefined method to integer value 5 toreflect ACPI 5.0 support.Moved the external ACPI PM timer interface prototypes to the public acpixf.hfile where they belong.Example Code and Data Size: These are the sizes for the OS-independentacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debugversion of the code includes the debug output trace mechanism and has a muchlarger code and data size.2) iASL Compiler/Disassembler and Tools:Disassembler: Fixed a problem with the new ACPI 5.0 serial resourcedescriptors (I2C, SPI, UART) where the resource produce/consumer bit wasincorrectly displayed.AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPIspecification.

iASL command line version 20120215 (February 15th 2011), Universal Binary (32 & 64 bit)

iASLme 1.33 version 20120215 (February 15th 2012), Universal Binary (32 & 64 bit)


Creadits to: cVad, Kabyl, Slice, STLVNUB

#222
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
updates 1. posting / THANKS!

#223
Neonlu

Neonlu

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Thanks for such useful tools.

#224
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,085 posts
  • Gender:Male
  • Location:UK
Thanks for the update rednous.
So I wonder if Apple be making use of these changes to the sleep/wake support code in the future?

#225
Dannii

Dannii

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
  • Gender:Female
  • Location:UK
Hiya, Thank you for the update!

I have some errors that I'm not sure how to fix, if anyone would mind pointing out what to do?

[codebox]
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20120215-64 [Feb 23 2012]
Copyright © 2000 - 2012 Intel Corporation
/Users/Dannii/Desktop/dsdt.dsl 21: External (PDC7)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 22: External (PDC6)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 23: External (PDC5)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 24: External (PDC4)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 25: External (PDC3)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 26: External (PDC2)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 27: External (PDC1)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 28: External (PDC0)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 29: External (CFGD)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 30: External (HNOT, MethodObj) // 1 Arguments
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 31: External (GP53)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 32: External (GP52)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 33: External (NNAB, IntObj)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 34: External (IDAB, MethodObj) // 0 Arguments
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 35: External (ECST, MethodObj) // 1 Arguments
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 39: Name (SS1, One)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 40: Name (SS2, Zero)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 41: Name (SS3, One)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 42: Name (SS4, One)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 43: Name (IOST, 0x0400)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 44: Name (TOPM, 0xDFFFFFFF)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 45: Name (ROMS, 0xFFE00000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 46: Name (MG1B, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 47: Name (MG1L, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 48: Name (MG2B, 0xE0000000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 49: Name (MG2L, 0x1C40C000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 50: Name (SP2O, 0x4E)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 51: Name (MCHB, 0xFED10000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 52: Name (MCHL, 0x4000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 53: Name (EGPB, 0xFED19000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 54: Name (EGPL, 0x1000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 55: Name (DMIB, 0xFED18000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 56: Name (DMIL, 0x1000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 57: Name (IFPB, 0xFED14000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 58: Name (IFPL, 0x1000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 59: Name (PEBS, 0xF8000000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 60: Name (PELN, 0x04000000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 61: Name (TTTB, 0xFED20000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 62: Name (TTTL, 0x00020000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 63: Name (SMBS, 0xEFA0)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 64: Name (PBLK, 0x0410)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 65: Name (PMBS, 0x0400)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 66: Name (PMLN, 0x80)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 67: Name (LVL2, 0x0414)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 68: Name (LVL3, 0x0415)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 69: Name (LVL4, 0x0416)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 70: Name (SMIP, 0xB2)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 71: Name (GPBS, 0x0500)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 72: Name (GPLN, 0x80)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 73: Name (APCB, 0xFEC00000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 74: Name (APCL, 0x1000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 75: Name (PM30, 0x0430)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 76: Name (SRCB, 0xFED1C000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 77: Name (SRCL, 0x4000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 78: Name (SUSW, 0xFF)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 79: Name (HPTB, 0xFED00000)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 80: Name (HPTC, 0xFED1F404)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 81: Name (ACPH, 0xDE)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 82: Name (ASSB, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 83: Name (AOTB, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 84: Name (AAXB, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 85: Name (PEHP, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 86: Name (SHPC, One)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 87: Name (PEPM, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 88: Name (PEER, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 89: Name (PECS, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 90: Name (ITKE, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 91: Name (FMBL, One)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 92: Name (FDTP, 0x02)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 93: Name (BRF, One)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 94: Name (BPH, 0x02)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 95: Name (BLC, 0x03)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 96: Name (BRFS, 0x04)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 97: Name (BPHS, 0x05)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 98: Name (BLCT, 0x06)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 99: Name (BRF4, 0x07)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 100: Name (BEP, 0x08)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 101: Name (BBF, 0x09)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 102: Name (BOF, 0x0A)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 103: Name (BPT, 0x0B)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 104: Name (SRAF, 0x0C)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 105: Name (WWP, 0x0D)
Warning 2089 - ^ Namespace object is not referenced
/Users/Dannii/Desktop/dsdt.dsl 106: Name (SDOE, 0x0E)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 107: Name (TRTP, One)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 108: Name (TRTD, 0x02)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 109: Name (TRTI, 0x03)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 110: Name (GCDD, One)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 111: Name (DSTA, 0x0A)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 112: Name (DSLO, 0x0C)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 113: Name (DSLC, 0x0E)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 114: Name (PITS, 0x10)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 115: Name (SBCS, 0x12)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 116: Name (SALS, 0x13)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 117: Name (LSSS, 0x2A)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 118: Name (SOOT, 0x35)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 119: Name (PDBR, 0x4D)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 120: Name (SMBL, 0x10)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 121: Name (TCGM, Zero)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 122: Name (SP1O, 0x164E)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 123: Name (IO2B, 0x0680)
Warning 2089 - Namespace object is not referenced ^
/Users/Dannii/Desktop/dsdt.dsl 4598: Zero
})
Name (_PLD, Buffer (0x10)
{
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
}
}
}
}

Device (GFX0)
{
Name (_ADR, 0x00020000)
Method (_DSM, 4, NotSerialized)
Store (Package (0x0E)
{
"@0,display-type",
Buffer (0x05)
{
"LVDS"
},

"AAPL,backlightRestore",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL,HasPanel",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"AAPL,Haslid",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
}, {
Error 4123 - syntax error, unexpected PARSEOP_STORE, expecting '{' ^
[/codebox]


I don't know if this helps but the last error at the bottom in the above box is also pointed out in dsdt fixer:
[codebox]DSDTFixer/DSDTFixer.app/Contents/Resources/files/dsdt.dsl 4509: Store (Package (0x0E)
Error 4096 - syntax error, unexpected PARSEOP_STORE, expecting '{' ^
ASL Input: - 11114 lines, 340756 bytes, 926 keywords
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 1 Optimizations[/codebox]


Thank you =)

#226
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,126 posts
  • Gender:Male
Try this

Store (Package (0x0E))

#227
Dannii

Dannii

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
  • Gender:Female
  • Location:UK
Thank you for your reply! I have tried that and various other options such as { but nothing seems to work, sadly. I've attached my dsdt just in case there is something I am missing, if you wouldn't mind taking a peek?

I'm working on getting brightness working with a combination of code from various places including the ACPIBacklight thread, so if there is something there that looks wrong, would you mind letting me know so that I can fix my dsdt, please? =)

Attached Files



#228
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,429 posts
  • Gender:Male
  • Location:Tru, Venezuela
@Dannii, Hi.

Compilation errors was fixed (due to bad graphics injection), and other bad factory errors was fixed too... it compile fine now. That was the first obstacle.

Then, you have a very bad code structure (device LCD is not in the right place), because the graphics injection should be ONLY in the GFX device, not in LCD and any other device. Please read the .dsl attached, and searching by the word "fixed1" w/o quotes to understand the problem. I think you can do it better. Good Luck.

Please sorry to everyone for the off-topic.

Attached Files



#229
Dannii

Dannii

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
  • Gender:Female
  • Location:UK
Brilliant thank you so much! I've been working on this for hours trying to figure out the problem and just didn't know where to start. I will take a look and hopefully figure something out. Thank you again =)

#230
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house
Summary of iASL changes for version 20120320, March 20th 2012:
1. ACPICA Core Subsystem _linenums:0'>[color=#000000]1. ACPICA Core Subsystem:Enhanced the sleep/wake interfaces to optionally execute the _GTS method (Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently does not execute these methods, and therefore these methods are often untested. It has been seen on some systems where the execution of these methods causes errors and also prevents the machine from entering S5. It is therefore suggested that host operating systems do not execute these methods by default. In the future, perhaps these methods can be optionally executed based on the age of the system and/or what is the newest version of Windows that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState andAcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin Ming.Fixed a problem where the length of the local/common FADT was set too early. The local FADT table length cannot be set to the common length until the original length has been examined. There is code that checks the table length and sets various fields appropriately. This can affect older machines with early FADT versions. For example, this can cause inadvertent writes to the CST_CNT register. Julian Anastasov.Fixed a mapping issue related to a physical table override. Use the deferred mapping mechanism for tables loaded via the physical override OSL interface. This allows for early mapping before the virtual memory manager is available. Thomas Renninger, Bob Moore.Enhanced the automatic return-object repair code: Repair a common problem with predefined methods that are defined to return a variable-length Package ofsub-objects. If there is only one sub-object, some BIOS ASL code mistakenly simply returns the single object instead of a Package with one sub-object.This new support will repair this error by wrapping a Package object around the original object, creating the correct and expected Package with one sub-object. Names that can be repaired in this manner include: _ALR, _CSD, _HPX, _MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=939"]ACPICA BZ 939[/url].Changed the exception code returned for invalid ACPI paths passed asparameters to external interfaces such as AcpiEvaluateObject. WasAE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.2. iASL Compiler/Disassembler and Tools:iASL: Added the infrastructure and initial implementation of a integrated C-like preprocessor. This will simplify BIOS development process by eliminating the need for a separate preprocessing step during builds. On Windows, it also eliminates the need to install a separate C compiler. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=761"]ACPICA BZ 761[/url]. Some features including full #define() macro support are still under development. These preprocessor directives are supported:	#define	#elif	#else	#endif	#error	#if	#ifdef	#ifndef	#include	#pragma message	#undef	#warningIn addition, these new command line options are supported:	-D <symbol> Define symbol for preprocessor use	-li		 Create preprocessed output file (*.i)	-P		Preprocess only and create preprocessor output file (*.i)Table Compiler: Fixed a problem where the equals operator within an expression did not work properly.Updated iASL to use the current versions of Bison/Flex. Updated the Windows project file to invoke these tools from the standard location. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=904"]ACPICA BZ 904[/url].Versions supported:	Flex for Windows:  V2.5.4	Bison for Windows: V2.4.1

iASL command line version 20120315 (March 15th 2012), Universal Binary (32 & 64 bit)

iaslMe 1.33 version 20120315 (March 15th 2012), Universal Binary (32 & 64 bit)


Creadits to: cVad, Kabyl, Slice, STLVNUB

#231
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
updated first posting

#232
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house
Summary of iASL changes for version 20120420, April 20th 2012:
1) ACPICA Core Subsystem _linenums:0'>[color=#000000]1) ACPICA Core Subsystem:Implemented support for multiple notify handlers. This change adds support toallow multiple system and device notify handlers on Device, Thermal Zone, andProcessor objects. This can simplify the host OS notification implementation.Also re-worked and restructured the entire notify support code to simplifyhandler installation, handler removal, notify event queuing, and notifydispatch to handler(s). Note: there can still only be two global notifyhandlers - one for system notifies and one for device notifies. There are nochanges to the existing handler install/remove interfaces. Lin Ming, BobMoore, Rafael Wysocki.Fixed a regression in the package repair code where the object referencecount was calculated incorrectly. Regression was introduced in the commit"Support to add Package wrappers".Fixed a couple possible memory leaks in the AML parser, in the error recoverypath. Jesper Juhl, Lin Ming.2) iASL Compiler/Disassembler and Tools:iASL: Fixed a problem with the resource descriptor support where the lengthof the StartDependentFn and StartDependentFnNoPrio descriptors were notincluded in cumulative descriptor offset, resulting in incorrect values forresource tags within resource descriptors appearing after a StartDependent*descriptor. Reported by Petr Vandrovec. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=949"]ACPICA BZ 949[/url].iASL and Preprocessor: Implemented full support for the #line directive tocorrectly track original source file line numbers through the .i preprocessoroutput file - for error and warning messages.iASL: Expand the allowable byte constants for address space IDs. Previously,the allowable range was 0x80-0xFF (user-defined spaces), now the range is0x0A-0xFF to allow for custom and new IDs without changing the compiler.iASL: Add option to treat all warnings as errors (-we). [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=948"]ACPICA BZ 948[/url].iASL: Add option to completely disable the preprocessor (-Pn).iASL: Now emit all error/warning messages to standard error (stderr) bydefault (instead of the previous stdout).ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). Updatefor resource descriptor offset fix above. Update/cleanup error outputroutines. Enable and send iASL errors/warnings to an error logfile(error.txt). Send all other iASL output to a logfile (compiler.txt). Fixedseveral extraneous "unrecognized operator" messages.

iASL command line version 20120420 (April 20th 2012), Universal Binary (32 & 64 bit) -> Attached File  iasl 20120420.zip   347.75KB   60 downloads

iaslMe 1.33 version 20120420 (April 20th 2012), Universal Binary (32 & 64 bit)
-> Attached File  iaslMe 20120420.zip   434.25KB   105 downloads


Creadits to: cVad, Kabyl, Slice, STLVNUB

#233
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house
18 May 2012. Summary of changes for version 20120518:
1) ACPICA Core Subsystem:Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is definedto block until asynchronous events such as notifies and GPEs have completed.Within ACPICA, it is only called before a notify or GPE handler isremoved/uninstalled. It also may be useful for the host OS within relateddrivers such as the Embedded Controller driver. See the ACPICA reference foradditional information. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=868"]ACPICA BZ 868[/url].ACPI Tables: Added a new error message for a possible overflow failure duringthe conversion of FADT 32-bit legacy register addresses to internal common 64-bit GAS structure representation. The GAS has a one-byte "bit length" field,thus limiting the register length to 255 bits. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=953"]ACPICA BZ 953[/url].Example Code and Data Size: These are the sizes for the OS-independentacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debugversion of the code includes the debug output trace mechanism and has a muchlarger code and data size.2) iASL Compiler/Disassembler and Tools:iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL macro.This keyword was added late in the ACPI 5.0 release cycle and was notimplemented until now.Disassembler: Added support for Operation Region externals. Adds missingsupport for operation regions that are defined in another table, andreferenced locally via a Field or BankField ASL operator. Now generates thecorrect External statement.Disassembler: Several additional fixes for the External() statement generationrelated to some ASL operators. Also, order the External() statementsalphabetically in the disassembler output. Fixes the External() generation forthe Create* field, Alias, and Scope operators:1) Create* buffer field operators - fix type mismatch warning on disassembly2) Alias - implement missing External support3) Scope - fix to make sure all necessary externals are emitted.iASL: Improved pathname support. For include files, merge the prefix pathnamewith the file pathname and eliminate unnecessary components. Convertbackslashes in all pathnames to forward slashes, for readability. Include filepathname changes affect both #include and Include() type operators.iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the endof a valid line by inserting a newline and then returning the EOF during thenext call to GetNextLine. Prevents the line from being ignored due to EOFcondition.iASL: Implemented some changes to enhance the IDE support (-vi option.) Errorand Warning messages are now correctly recognized for both the source codebrowser and the global error and warning counts.



iASL command line version 20120518 (May 18th 2012), Universal Binary (32 & 64 bit) -> Attached File  iasl-20120518.zip   347.9KB   65 downloads

iaslMe 1.33 version 20120518 (May 18th 2012), Universal Binary (32 & 64 bit) -> Attached File  iaslMe-20120518.zip   433.97KB   112 downloads


Creadits to: cVad, Kabyl, Slice, STLVNUB

#234
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,126 posts
  • Gender:Male
Have updated AcpicaTool
New feature.
iaslMe included with NO iasl (smaller size)

to use:
Run script.
iaslMe Auto-Updates to latest version. :thumbsup_anim:

Note: You will need Xcode command line tools installed to compile.

enjoy:

Attached Files



#235
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
updated thread title

#236
rednous

rednous

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:Galaxy: Milky Way
  • Interests:graphic design, mac, progressive and house
20 June 2012. Summary of changes for version 20120620:
1) ACPICA Kernel-resident Subsystem _linenums:0'>[color=#000000]1) ACPICA Kernel-resident Subsystem:Implemented support to expand the "implicit notify" feature to allow multipledevices to be notified by a single GPE. This feature automatically generates aruntime device notification in the absence of a BIOS-provided GPE controlmethod (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit notify isprovided by ACPICA for Windows compatibility, and is a workaround for BIOS AMLcode errors. See the description of the AcpiSetupGpeForWake interface in theAPCICA reference. Bob Moore, Rafael Wysocki. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=918"]ACPICA BZ 918[/url].Changed some comments and internal function names to simplify and ensurecorrectness of the Linux code translation. No functional changes.2) iASL Compiler/Disassembler and Tools:Disassembler: Added support to emit short, commented descriptions for the ACPIpredefined names in order to improve the readability of the disassembledoutput. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=959"]ACPICA BZ 959[/url]. Changes include:  1) Emit descriptions for all standard predefined names (_INI, _STA, _PRW,etc.)  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)  3) Emit descriptions for the resource descriptor names (_MIN, _LEN, etc.)AcpiSrc: Fixed several long-standing Linux code translation issues. Argumentdescriptions in function headers are now translated properly to lower case andunderscores. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=961"]ACPICA BZ 961[/url]. Also fixes translation problems such as these:(old -> new)  i_aSL -> iASL  00-7_f -> 00-7F  16_k -> 16K  local_fADT -> local_FADT  execute_oSI -> execute_OSIiASL: Fixed a problem where null bytes were inadvertently emitted into somelisting files.iASL: Added the existing debug options to the standard help screen. There areno longer two different help screens. [url="http://www.acpica.org/bugzilla/show_bug.cgi?id=957"]ACPICA BZ 957[/url].AcpiHelp: Fixed some typos in the various predefined name descriptions. Alsoexpand some of the descriptions where appropriate.iASL: Fixed the -ot option (display compile times/statistics). Was not workingproperly for standard output; only worked for the debug file case.


iASL command line version 20120620 (June 20th 2012), Universal Binary (32 & 64 bit) -> Attached File  iasl-20120620.zip   352.07KB   107 downloads

iaslMe 1.33 version 20120620 (June 20th 2012), Universal Binary (32 & 64 bit) -> Attached File  iaslMe-20120620.zip   438.14KB   173 downloads


Creadits to: cVad, Kabyl, Slice, STLVNUB

#237
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,085 posts
  • Gender:Male
  • Location:UK
Thanks for keeping this thread going rednous :)

#238
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,884 posts
  • Gender:Male
  • Location:Stuttgart / Germany
updated title - THANKS!

#239
philip_petev

philip_petev

    InsanelyMac Protégé

  • Members
  • PipPip
  • 74 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria
Hi folks
When I try to compile the latest version, I get these errors:

 bash-5.02 лв make
flex -i -s -PAslCompiler -oaslcompilerlex.c ../../source/compiler/aslcompiler.l
bison -v -d -y -pAslCompiler -oaslcompilerparse.c ../../source/compiler/aslcompiler.y
flex -i -s -PDtParser -odtparserlex.c ../../source/compiler/dtparser.l
bison -v -d -y -pDtParser -odtparserparse.c ../../source/compiler/dtparser.y
flex -i -s -PPrParser -oprparserlex.c ../../source/compiler/prparser.l
bison -v -d -y -pPrParser -oprparserparse.c ../../source/compiler/prparser.y
Copy intermediate file:
aslcompilerparse.h -> aslcompiler.y.h
Copy intermediate file:
dtparserparse.h -> dtparser.y.h
Copy intermediate file:
prparserparse.h -> prparser.y.h
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -Wall -Werror -Wstrict-aliasing=0 -oaslcompilerlex.o aslcompilerlex.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -Wall -Werror -Wstrict-aliasing=0 -oaslcompilerparse.o aslcompilerparse.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -Wall -Werror -Wstrict-aliasing=0 -odtparserlex.o dtparserlex.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -Wall -Werror -Wstrict-aliasing=0 -odtparserparse.o dtparserparse.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -Wall -Werror -Wstrict-aliasing=0 -oprparserlex.o prparserlex.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -Wall -Werror -Wstrict-aliasing=0 -oprparserparse.o prparserparse.c
cc -c -D_LINUX -D_GNU_SOURCE -DACPI_ASL_COMPILER -I../../source/include -I../../source/compiler -ansi -Wall -Wbad-function-cast -Wdeclaration-after-statement -Werror -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Wchar-subscripts -Wempty-body -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -Wtype-limits -oadfile.o ../../source/common/adfile.c
error: unknown warning option '-Wlogical-op' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wmissing-parameter-type' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wold-style-declaration' [-Werror,-Wunknown-warning-option]
make: *** [adfile.o] Error 1

What's wrong with this source code?

#240
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,126 posts
  • Gender:Male
Try this
ACPICATool V0.4
Updated, bug fixes, improvements

https://dl.dropbox.c...icaToolV0.4.zip





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy