news 2026/8/16 8:52:27

处理完ACPI!AcpiBuildRunMethodList链表后返回要检查acpi!AcpiBuildQueueList链表不空运行continue继续循环

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
处理完ACPI!AcpiBuildRunMethodList链表后返回要检查acpi!AcpiBuildQueueList链表不空运行continue继续循环

处理完ACPI!AcpiBuildRunMethodList链表后返回要检查acpi!AcpiBuildQueueList链表不空运行continue继续循环

0: kd> g
Breakpoint 5 hit
eax=00000000 ebx=00000000 ecx=89906e40 edx=00000001 esi=89906e30 edi=80b019f4
eip=f73fb911 esp=f789ef68 ebp=f789ef84 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00000246
ACPI!ACPIBuildProcessGenericList+0x4d:
f73fb911 ff55f4 call dword ptr [ebp-0Ch] ss:0010:f789ef78={ACPI!ACPIBuildProcessGenericComplete (f73fb840)}
0: kd> t
Breakpoint 10 hit
eax=00000000 ebx=00000000 ecx=89906e40 edx=00000001 esi=89906e30 edi=80b019f4
eip=f73fb840 esp=f789ef64 ebp=f789ef84 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00000246
ACPI!ACPIBuildProcessGenericComplete:
f73fb840 55 push ebp
0: kd> kc
#
00 ACPI!ACPIBuildProcessGenericComplete
01 ACPI!ACPIBuildProcessGenericList
02 ACPI!ACPIBuildDeviceDpc
03 nt!KiRetireDpcList
04 nt!KiDispatchInterrupt
WARNING: Frame IP not in any known module. Following frames may be wrong.
05 0x0
0: kd> dv
BuildRequest = 0x89906e30
deviceExtension = 0x89906e30
0: kd> gu
Breakpoint 6 hit
eax=00000000 ebx=00000000 ecx=00010001 edx=00000000 esi=89906e30 edi=80b019f4
eip=f73fb914 esp=f789ef6c ebp=f789ef84 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00000246
ACPI!ACPIBuildProcessGenericList+0x50:
f73fb914 85db test ebx,ebx
0: kd> dv tempEntry
tempEntry = 0xf743b870 [ 0xf743b870 - 0xf743b870 ]
0: kd> dx -r1 ((ACPI!_LIST_ENTRY *)0xf743b870)
((ACPI!_LIST_ENTRY *)0xf743b870) : 0xf743b870 [Type: _LIST_ENTRY *]
[+0x000] Flink : 0xf743b870 [Type: _LIST_ENTRY *]
[+0x004] Blink : 0xf743b870 [Type: _LIST_ENTRY *]
0: kd> u 0xf743b870
ACPI!AcpiBuildRunMethodList:
f743b870 70b8 jo ACPI!BuildRequestLookAsideList+0x4a (f743b82a)
f743b872 43 inc ebx
f743b873 f770b8 div eax,dword ptr [eax-48h]
f743b876 43 inc ebx
f743b877 f778b8 idiv eax,dword ptr [eax-48h]
f743b87a 43 inc ebx
f743b87b f778b8 idiv eax,dword ptr [eax-48h]
f743b87e 43 inc ebx


//
// If we have completed the request, then we should look at the
// at the next request, otherwise, we need to look at the current
// request again
if ( workDone == WORK_DONE_COMPLETE || workDone == WORK_DONE_FAILURE) {

currentEntry = tempEntry; 条件成立。

}


ACPI!AcpiBuildRunMethodList列表里面已经没有可以处理的!!!

while (currentEntry != ListEntry) { 不成立。

退出函数。


VOID
ACPIBuildDeviceDpc(
IN PKDPC Dpc,
IN PVOID DpcContext,
IN PVOID SystemArgument1,
IN PVOID SystemArgument2
)
{
//
// We actually care what this call returns. The reason we do
// is that we want all of the control methods to be run before
// we do any of the following steps
//
status = ACPIBuildProcessGenericList(
&AcpiBuildRunMethodList,
AcpiBuildRunMethodDispatch
);

//
// We must own the spin lock before we do the following...
//
KeAcquireSpinLockAtDpcLevel( &AcpiBuildQueueLock );

//
// If we got back STATUS_PENDING, that means that there's
// a method queued in the interpreter somewhere. This will
// cause the DPC to (eventually) become scheduled again.
// That means that we don't have to do anything special to
// handle it.
//
if (status == STATUS_PENDING) {

continue;

}

//
// The case that is special is where we are do get STATUS_SUCCESS
// back. This indicates that we've drained the list. The little
// fly in the ointment is that we might have scheduled other
// run requests, but those are stuck in the BuildQueue list. So
// what we need to do here is check to see if the BuildQueue list
// is non-empty and if it is, set the AcpiBuildWorkDone to TRUE
// so that we iterage again (and move the elements to the proper
// list).
//
if (!IsListEmpty( &AcpiBuildQueueList) ) {

AcpiBuildWorkDone = TRUE;
continue;

}

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/8/11 14:16:59

YOLO-World:从入门到实战的多模态目标检测全指南

文章目录 从0到1掌握YOLO-World:多模态目标检测入门到实战超详细教程 一、先搞懂“多模态目标检测”和YOLO-World到底是什么 1. 什么是多模态目标检测? 2. YOLO-World:速度与精度的多模态标杆 二、YOLO-World的技术逻辑:从输入到输出的全流程 1. 核心架构:“图像-文本”双…

作者头像 李华
网站建设 2026/8/1 5:31:24

多光谱图像融合入门:基于 DAF-Net 的完整实现教程(红外/可见光)

文章目录 零基础入门红外与可见光图像融合:DAF-Net 实战全指南 一、技术底层逻辑:为什么选择 DAF-Net? 1. DAF-Net 核心架构拆解 二、环境搭建:从0到1配置开发环境 1. 硬件与系统要求 2. 软件安装步骤 三、数据集准备:让模型“见多识广” 1. 数据集下载与整理 2. 数据预处…

作者头像 李华
网站建设 2026/8/11 4:52:21

数学建模Matlab算法,第三十章 偏最小二乘回归

偏最小二乘回归:理论、方法与实证分析 在数据分析与建模的实践领域,变量间的相互关系研究始终是核心议题之一。尤其是当面临两组多重相关变量,且需要通过一组变量(自变量或预测变量)对另一组变量(因变量或响应变量)进行预测时,选择合适的分析方法显得至关重要。传统的…

作者头像 李华
网站建设 2026/7/29 5:21:33

基于VUE的高校毕业设计管理系统[VUE]-计算机毕业设计源码+LW文档

摘要:高校毕业设计管理是一项复杂且重要的工作,传统管理方式在效率、准确性等方面存在诸多不足。本文旨在设计并实现基于VUE的高校毕业设计管理系统,以提升管理效能。通过深入的需求分析,明确系统涵盖用户管理、选题管理、任务书管…

作者头像 李华
网站建设 2026/8/16 5:32:58

kubeadm 离线部署 Kubernetes 集群 + 完整测试【20260117】001

文章目录 kubeadm 离线部署 Kubernetes 集群 + 完整测试 一、前期准备 1. 环境规划(最小化集群) 2. 所有节点统一基础配置(必须执行) (1)关闭防火墙 (2)关闭 SELinux (3)关闭交换分区 (4)配置内核参数(开启IP转发、加载overlay模块) (5)配置主机名与hosts解析(…

作者头像 李华
网站建设 2026/7/30 23:46:01

基于SpringBoot的办公管理系统设计与实现

背景分析现代企业办公场景中,传统纸质化或分散式管理方式存在效率低、数据孤岛、协同困难等问题。随着数字化转型加速,企业对高效、集成化办公管理的需求日益增长。SpringBoot作为轻量级Java框架,具备快速开发、微服务支持等特性,…

作者头像 李华