GitHub PushEvent at 2014-05-08 06:28:55
Repository: acpica
Actor: zetalog
Payload: {"shas":[["0c96100e496cff228529bb2cebe675b38366fef2","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","acpidump: Fix an issue that reserved tables are dumped multiple times in -n mode.\n\nIn \"-n\" mode, reserved tables (RSDP/RSDT/XSDT/DSDT/FACS) are dumped\nmultiple times, the root cause is there is no instance check for such\ntables in OslGetBiosTable().\n\nThis patch fixes this issue. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",false],["5b781e75c0771ac8499e69b806803cf7a3ec945c","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","acpidump: Fix an issue for Linux version that EFI ACPI 1.0 GUID is not used if ACPI 2.0 GUID doesn't exist.\n\nThis patch facilitates Linux acpidump with the ability to find RSDP on an\nEFI platform using ACPI 1.0 GUID when 2.0 GUID fails. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",false],["6217036e7ead61b8b085aae05d0a59a5b35ac39b","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Utilities: Fix an issue for non-native ACPI_IS_PRINT() by replacing _ACPI_SP with _ACPI_XS.\n\nThere is a difference between standard isprint() and ACPICA provided non\nnative ACPI_IS_PRINT():\n  The GNU libc isprint('\\n') test result:\n   isprint(0x20) is FALSE\n  The Linux kernel isprint('\\n') test result:\n   ACPI: isprint(0x20) is FALSE\n  The _acpi_ctype isprint('\\n') test result:\n   isprint(0x20) is TRUE\n\nThe ACPI_IS_PRINT() macro generated for _acpi_ctype is wrong, it should use\n_ACPI_XS instead of _ACPI_SP.  The _ACPI_XS only means 0x20 - the white\nspace, other space characters should be non printable.\n\nThis patch fixes this issue. For OSPMs that are using native standard\nisprint() implementations, this patch is a no-op. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",false],["135ce40c5d07f534384baa7a4d031abd6ca2ca9f","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Utilities: Fix an issue that non-native string API usage cannot find AcpiUtStrchr() to link.\n\nThis patch enables non-native ACPI_STRCHR(), for OSPMs that are using\nnative standard implementations, this patch is a no-op. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",false],["92582afe9734712ce33b5c8bfda2d47bcd517592","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","OSL: Export initialized global variables of AcpiOsVprintf().\n\nThis patch exports initialized global variables used in AcpiOsVprintf() for\nACPICA applications.\n\nThis patch is useful for portable applications. Such applications need to\nlink osPLATxf.c, thus need some global variables used by\nAcpiOsVprintf()/AcpiOsPrintf() to be initialized correctly for them to use.\nWhile the initialization code in utglobal.c may not be linked into such\napplications. This patch uses ACPI_INIT_GLOBAL() mechanism to solve this\nissue. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["428eb06a51903062c076272b49960991d88e77bd","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","OSL: Add ACPI_USE_NATIVE_MEMORY_MAPPING to improve portability.\n\nThis patch introduces new compilation environment\nACPI_USE_NATIVE_MEMORY_MAPPING to improve the portability of the generic\nOSL.\n\nIn order to convert acpidump to be a portable applicatiion, acpidump need\nto link osPLATxf.c, then there will be 2 instances of\nAcpiOsMapMemory()/AcpiOsUnmapMemory() linked by acpidump, one is only used\nby acpidump to perform file mapping, the other is a generic memory mapping\nimplementation for other applications. It thus requires a mechanism for\nacpidump to exclude the generic one. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["75fa7392c32c80997c86dd9c77bb8a25510d2af5","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","OSL: Add AcpiOsAllocateZeroed() to improve portability.\n\nThis patch implements AcpiOsAllocateZeroed() in generic OSL for the\napplicatiions that have USE_NATIVE_ALLOCATED_ZEROED enabled. This can help\nto improve the portability of the generic OSL.\n\nSome utilities may include only osunixxf.c/oswinxf.c without including\nutalloc.c, the default AcpiOsAllocateZeroed() is useful in such case to\nlink a default implementation. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["50b64053166050d3515c8e099fea4d491bca4dcd","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","OSL: Cleanup AcpiOsGetRootPointer() to improve portability.\n\nThis patch cleans up AcpiOsGetRootPointer() by deleting the\nAeLocalGetRootPointer() and adding ACPI_USE_NATIVE_RSDP_POINTER.  This can\nhelp to improve the portability of the generic OSL.\n\nThe AeLocalGetRootPointer() referenced by osunixxf.c/oswinxf.c is\npreventing portable applications that do not have this function implemented\nto directly link the useful generic OSL.\n\nThis patch changes the way to achieve a default empty\nAcpiOsGetRootPointer() by deleting all AeLocalGetRootPointer(). If a\nutility wants to have a specific and functioning AcpiOsGetRootPointer(), it\nnow should define ACPI_USE_NATIVE_RSDP_POINTER and implement its own\nAcpiOsGetRootPointer(). Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["37fbc50409ca266fb5fc25cfeb9a83a19245acff","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","OSL: Add portable file IO to improve portability.\n\nThis patch adds portable file IO to generic OSL to improve the portability\nof the applications.\n\nA portable application may use different file IO interaces than the\nstandard C library ones. This patch thus introduces an abstract file IO\nlayer into the generic OSL.\n\nNote that this patch does not introduce users of such interfaces, further\npatches should introduce users one by one carefully with build tests\nperformed. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["2e5a7ffa7e2b3a23bd9e667c3dc9611642793705","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Utilities: Add formatted printing APIs.\n\nThis patch introduces formatted printing APIs to handle ACPICA specific\nformatted print requirements.\n\nThe specific formatted printing APIs are useful to ACPICA as:\n1. Some portable applications do not link standard C library, so they\n   cannot use standard formatted print APIs directly.\n2. Platform specific printing format may differ and thus not portable, for\n   example, UINT64 is %ull for Linux kernel and is %uI64 for some MSVC\n   versions.\n3. Platform specific printing format may conflict with ACPICA's usages\n   while it is not possible for ACPICA developers to test their code for\n   all platforms. For example, developers may generate %pRxxx while Linux\n   kernel treats %pR as structured resource printing and decodes variable\n   argument as a \"struct resource\" pointer.\nThis patch solves above issues by introducing the new APIs.\n\nNote that users of such APIs are not introduced in this patch. Users of\nAcpiOsFileVprintf()/AcpiUtFilePrintf() need to invoke AcpiOsInitialize(),\nthis should be taken care by the further patches where such users are\nintroduced. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["2768198577b40a96d444ee4b6ee4e72d9f1fcb6a","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Utilities: Introduce AcpiLogError() to improve portability.\n\nInvocations like fprintf(stderr) and perror() are not portable, this patch\nintroduces AcpiLogError() as a replacement, it is implemented using new\nportable API - AcpiUtFileVprintf().\n\nSome applications are already referencing utdebug.c, they now need to build\nutlibcfs.c/utprint.c as well.\n\nNote that though AcpiOsInitialize() need to be invoked prior than using\nthis new API, since no users are introduced in this patch, such invocations\nare not added for applications that link utprint.c in this patch. Futher\npatches that introduce users of AcpiLogError() should take care of this.\nLv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["478bc9518c858fa7884ebb1beb356fcb14b5abdb","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Application: Enhance ACPI_USAGE_xxx/ACPI_OPTION with AcpiOsPrintf() to improve portability.\n\nThis patch enhances ACPI_USAGE_xxx/ACPI_OPTION macros to use portable\nAcpiOsPrintf() so that usage functions for applications no longer rely on\nthe printf() API.\n\nTo use AcpiOsPrintf() exported by osunixxf.c/oswinxf.c as a replacement of\nprintf, applications need to initialize AcpiGbl_OutputFile to stdout and\ninitialize AcpiGbl_DbOutputFlags to ACPI_DB_CONSOLE_OUTPUT. The latter is\nautomatically done by ACPI_INIT_GLOBAL(), applications need to define\nDEFINE_ACPI_GLOBALS to utilize this mechanism. For GCC, assigning stdout to\nAcpiGbl_OutputFile using ACPI_INIT_GLOBAL() is not possible as stdout is\nnot a constant in GCC environment. As an alternative solution, stdout\nassignment has been put into AcpiOsInitialize(). Thus AcpiOsInitialize()\nneed to be invoked very early by the applications to initialize the default\noutput of AcpiOsPrintf() to keep behavior consistency.\n\nThe details of adding DEFINE_ACPI_GLOBALS and AcpiOsInitialize() are as\nfollows:\n1. acpiexamples/acpiexec/acpinames have already invoked\n   AcpiInitializeSubsystem() very early, thus no need to add\n   AcpiOsInitialize() for them.\n2. iasl have already invoked AcpiOsInitialize(), but the invocation is not\n   early enough to make its usage functioning proper. This patch adds an\n   early AcpiOsInitialize() invocation for it.\n3. acpidump has its own AcpiOsPrintf() implementation, this is not needed\n   after applying this patch to use generic OSL.\n4. acpidump/acpihelp/acpisrc/acpixtract are the only applications that do\n   not have utglobal.o linked, so DEFINE_ACPI_GLOBALS need to be defined\n   for them.\n5. acpidump already defines DEFINE_ACPI_GLOBALS.\n6. acpidump has been released to Linux kernel, after adding osunixxf.c to\n   generate/unix/acpidump/Makefile, libacpica.sh also need to be updated to\n   release osunixxf.c to Linux kernel.\n\nThough makefiles are updated to include osunixxf.c in this patch, MSVS\nproject files are not updated. It can be done by further patches with\nproper build tests performed. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["2f3c441cf23013cf00388da309af8056f3abaa2b","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Common: Enhance CmGetFileSize() to improve portability.\n\nThis patch uses abstract file IO and AcpiLogError() APIs to enhance\nCmGetFileSize() so that applications that invoke this API could have\nportability improved.\n\nWith actual references added to abstract file IO and AcpiLogError(), the\napplications need to link utlibcfs.o, utdebug.o, utexcep.o, utmath.o,\nutprint.o and utxferror.o.\nThough it is required to add AcpiOsInitialize() invocations if an\napplication starts to use AcpiLogError(), this doesn't appear in this\npatch. A previous patch in the same series should have already added\nAcpiOsInitialize() invocations for all applications. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["35caea5123fce93f39d32866f2772f14ccaf8fcc","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","Common: Enhance AcpiGetopt() to improve portability.\n\nThis patch enhances AcpiGetopt() by converting the standard C library\ninvocations into portable ACPI string APIs and AcpiLogError() to improve\nportability.\n\nWith actual references added to AcpiLogError(), the applications need to\nlink utlibcfs.o, utdebug.o, utexcep.o, utmath.o, utprint.o and utxferror.o.\nThough it is required to add AcpiOsInitialize() invocations if an\napplication starts to use AcpiLogError(), this doesn't appear in this\npatch. A previous patch in the same series should have already added\nAcpiOsInitialize() invocations for all applications. Lv Zheng.\n\nWith actual references added, some utilities need to add utlibcfs.o,\nutdebug.o, utexcep.o, utmath.o, utprint.o and utxferror.o in order to\nlink. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["db296b52426fa79748d718e9c614b3de45fd29a9","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","acpidump: Add memory/string OSL usage to improve portability.\n\nThis patch adds code to use generic OSL for acpidump to improve the\nportability of this tool. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["72edd03f5c56a8c4cbd5fd58ecd55a597db57b0b","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","acpidump: Remove exit() from generic layer to improve portability.\n\nThis patch removes exit() from generic acpidump code to improve the\nportability of this tool. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["915189d087aedc3f02e889af170983e6f541fc74","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","acpidump: Replace file IOs with new APIs to improve portability.\n\nThe new APIs are enabled to offer a portable layer to access files:\n1. AcpiOsXXXFileXXX: Wrapper of fopen/fclose/fread/fwrite\n2. AcpiOsPrintf: Wrapper of printf\n3. AcpiLogError: Wrapper of fprintf(stderr)\n\nThis patch deploys such mechanisms to acpidump to improve the portability\nof this tool. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["9fd98532a7435efcafa3c1ca858bfb20fb4fa944","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","acpidump: Reduce freopen() invocations to improve portability.\n\nThis patch reduces the requirement of invoking freopen() in acpidump in order\nto reduce the porting effort of acpidump.\n\nThis patch achieves this by turning all AcpiOsPrintf(stdout) into\nAcpiUtFilePrintf(Gbl_OutputFile). Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["ff4959c4edc27e7849be1ce29a4476d37820c10e","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","EFI: Add build environment support for GNU EFI development.\n\nThis patch adds build environment for GNU EFI shell development.\n\nNote that only the Makefiles used by EFI development are created in this\npatch, actual OSL is not implemented and ACPICA applications are enabled in\nthis patch. Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true],["014582e6912715d3bf61fa01b81c10ec3b56856a","687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","EFI: Add generic OSL support for GNU EFI development.\n\nThis patch adds generic OSL for GNU EFI shell development.\n\nThe following files are enhanced with GNU EFI builds:\n1. os_specific/service_layers/osefixf.c\n2. include/platform/acefi.h\n3. source/components/utilities/utclib.c - enabled one nostdlib function.\n\nNote that this patch uses DivU64x32 to implement ACPI_DIV_64_BY_32, which\nis not correct.  We do this because we can use this GNU EFI function to\nhide architecture specific code, so that ACPICA do not need to maintain an\narchitecture specific layer, but this definitely will slow down the\napplications.\n\nACPICA EFI tools will have efi_main() entry points.  Lv Zheng.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","Lv Zheng",true]],"size":21,"ref":"refs/heads/acpica-efi","head":"835358e6da768d308a2f7eb35021d7e3f117bee7"}