Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
d9ff9638
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d9ff9638
编写于
7月 22, 2007
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull acpica into release branch
上级
d7fff6f4
e6917317
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
35 addition
and
19 deletion
+35
-19
drivers/acpi/events/evgpeblk.c
drivers/acpi/events/evgpeblk.c
+4
-0
drivers/acpi/events/evrgnini.c
drivers/acpi/events/evrgnini.c
+1
-0
drivers/acpi/tables/tbfadt.c
drivers/acpi/tables/tbfadt.c
+26
-18
include/acpi/platform/acenv.h
include/acpi/platform/acenv.h
+1
-1
include/acpi/platform/aclinux.h
include/acpi/platform/aclinux.h
+3
-0
未找到文件。
drivers/acpi/events/evgpeblk.c
浏览文件 @
d9ff9638
...
...
@@ -586,6 +586,10 @@ acpi_ev_delete_gpe_xrupt(struct acpi_gpe_xrupt_info *gpe_xrupt)
flags
=
acpi_os_acquire_lock
(
acpi_gbl_gpe_lock
);
if
(
gpe_xrupt
->
previous
)
{
gpe_xrupt
->
previous
->
next
=
gpe_xrupt
->
next
;
}
else
{
/* No previous, update list head */
acpi_gbl_gpe_xrupt_list_head
=
gpe_xrupt
->
next
;
}
if
(
gpe_xrupt
->
next
)
{
...
...
drivers/acpi/events/evrgnini.c
浏览文件 @
d9ff9638
...
...
@@ -284,6 +284,7 @@ acpi_ev_pci_config_region_setup(acpi_handle handle,
}
if
(
!
pci_device_node
)
{
ACPI_FREE
(
pci_id
);
return_ACPI_STATUS
(
AE_AML_OPERAND_TYPE
);
}
...
...
drivers/acpi/tables/tbfadt.c
浏览文件 @
d9ff9638
...
...
@@ -211,14 +211,17 @@ void acpi_tb_parse_fadt(acpi_native_uint table_index, u8 flags)
* DESCRIPTION: Get a local copy of the FADT and convert it to a common format.
* Performs validation on some important FADT fields.
*
* NOTE: We create a local copy of the FADT regardless of the version.
*
******************************************************************************/
void
acpi_tb_create_local_fadt
(
struct
acpi_table_header
*
table
,
u32
length
)
{
/*
* Check if the FADT is larger than what we know about (ACPI 2.0 version).
* Truncate the table, but make some noise.
* Check if the FADT is larger than the largest table that we expect
* (the ACPI 2.0/3.0 version). If so, truncate the table, and issue
* a warning.
*/
if
(
length
>
sizeof
(
struct
acpi_table_fadt
))
{
ACPI_WARNING
((
AE_INFO
,
...
...
@@ -227,10 +230,12 @@ void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length)
sizeof
(
struct
acpi_table_fadt
)));
}
/* C
opy the entire FADT locally. Zero first for tb_convert_fadt
*/
/* C
lear the entire local FADT
*/
ACPI_MEMSET
(
&
acpi_gbl_FADT
,
0
,
sizeof
(
struct
acpi_table_fadt
));
/* Copy the original FADT, up to sizeof (struct acpi_table_fadt) */
ACPI_MEMCPY
(
&
acpi_gbl_FADT
,
table
,
ACPI_MIN
(
length
,
sizeof
(
struct
acpi_table_fadt
)));
...
...
@@ -251,7 +256,7 @@ void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length)
* RETURN: None
*
* DESCRIPTION: Converts all versions of the FADT to a common internal format.
*
->
Expand all 32-bit addresses to 64-bit.
* Expand all 32-bit addresses to 64-bit.
*
* NOTE: acpi_gbl_FADT must be of size (struct acpi_table_fadt),
* and must contain a copy of the actual FADT.
...
...
@@ -292,8 +297,23 @@ static void acpi_tb_convert_fadt(void)
}
/*
* Expand the 32-bit V1.0 addresses to the 64-bit "X" generic address
* structures as necessary.
* For ACPI 1.0 FADTs (revision 1 or 2), ensure that reserved fields which
* should be zero are indeed zero. This will workaround BIOSs that
* inadvertently place values in these fields.
*
* The ACPI 1.0 reserved fields that will be zeroed are the bytes located at
* offset 45, 55, 95, and the word located at offset 109, 110.
*/
if
(
acpi_gbl_FADT
.
header
.
revision
<
3
)
{
acpi_gbl_FADT
.
preferred_profile
=
0
;
acpi_gbl_FADT
.
pstate_control
=
0
;
acpi_gbl_FADT
.
cst_control
=
0
;
acpi_gbl_FADT
.
boot_flags
=
0
;
}
/*
* Expand the ACPI 1.0 32-bit V1.0 addresses to the ACPI 2.0 64-bit "X"
* generic address structures as necessary.
*/
for
(
i
=
0
;
i
<
ACPI_FADT_INFO_ENTRIES
;
i
++
)
{
target
=
...
...
@@ -349,18 +369,6 @@ static void acpi_tb_convert_fadt(void)
acpi_gbl_FADT
.
xpm1a_event_block
.
space_id
;
}
/*
* For ACPI 1.0 FADTs, ensure that reserved fields (which should be zero)
* are indeed zero. This will workaround BIOSs that inadvertently placed
* values in these fields.
*/
if
(
acpi_gbl_FADT
.
header
.
revision
<
3
)
{
acpi_gbl_FADT
.
preferred_profile
=
0
;
acpi_gbl_FADT
.
pstate_control
=
0
;
acpi_gbl_FADT
.
cst_control
=
0
;
acpi_gbl_FADT
.
boot_flags
=
0
;
}
}
/******************************************************************************
...
...
include/acpi/platform/acenv.h
浏览文件 @
d9ff9638
...
...
@@ -136,7 +136,7 @@
/*! [Begin] no source code translation */
#if defined(__linux__)
#if defined(_
LINUX) || defined(_
_linux__)
#include "aclinux.h"
#elif defined(_AED_EFI)
...
...
include/acpi/platform/aclinux.h
浏览文件 @
d9ff9638
...
...
@@ -91,7 +91,10 @@
#define ACPI_USE_NATIVE_DIVIDE
#endif
#ifndef __cdecl
#define __cdecl
#endif
#define ACPI_FLUSH_CPU_CACHE()
#endif
/* __KERNEL__ */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录