diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-06-12 15:13:10 +0800 |
---|---|---|
committer | Lv Zheng <lv.zheng@intel.com> | 2014-06-12 15:13:10 +0800 |
commit | 5bc4ac7ffcece5399a544b83109e1862f7e17acb (patch) | |
tree | 92bae8839609a963ec46d91c404834a722de2fa7 /generate/linux | |
parent | a97e1f769135bdcd31975255e862771a7cb13931 (diff) | |
download | acpica-5bc4ac7ffcece5399a544b83109e1862f7e17acb.tar.gz |
OSL: Cleanup AcpiOsPrintf()/AcpiOsVprintf() stubs.
This patch is mainly for acpidump where there are redundant
AcpiOsPrintf()/AcpiOsVprintf() stubs implemented. This patch cleans up such
specific implementation by linking acpidump to osunixxf.c/oswinxf.c.
To make AcpiOsPrintf() exported by osunixxf.c/oswinxf.c to behave as the
old acpidump specific ones, applications need to:
1. Initialize AcpiGbl_DbOutputFlags to ACPI_DB_CONSOLE_OUTPUT.
This is automatically done by ACPI_INIT_GLOBAL(), applications need to
link utglobal.o to utilize this mechanism.
2. Initialize AcpiGbl_OutputFile to stdout.
For GCC, assigning stdout to AcpiGbl_OutputFile using ACPI_INIT_GLOBAL()
is not possible as stdout is not a constant in GCC environment. As an
alternative solution, stdout assignment is put into AcpiOsInitialize().
Thus AcpiOsInitialize() need to be invoked very early by the
applications to initialize the default output of AcpiOsPrintf().
Note that acpidump has been released to Linux kernel, after adding
osunixxf.c to generate/unix/acpidump/Makefile, libacpica.sh also need to be
updated to release osunixxf.c to Linux kernel. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'generate/linux')
-rwxr-xr-x | generate/linux/libacpica.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generate/linux/libacpica.sh b/generate/linux/libacpica.sh index 851863880..cf36022fb 100755 --- a/generate/linux/libacpica.sh +++ b/generate/linux/libacpica.sh @@ -87,6 +87,7 @@ acpica_tools_paths() os_specific/service_layers/oslinuxtbl.c \ os_specific/service_layers/osunixdir.c \ os_specific/service_layers/osunixmap.c \ + os_specific/service_layers/osunixxf.c \ tools/acpidump \ " echo $paths |