Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG REPORT] acpi pm timer 没有更新墙上时间,并且没有触发软中断。 #782

Closed
fslongjin opened this issue Apr 28, 2024 · 3 comments
Labels
A-driver Area: 驱动程序 bug Something isn't working bug-report 这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label) In-progress

Comments

@fslongjin
Copy link
Member

问题

acpi pm timer 没有更新墙上时间,并且没有触发软中断。

这会导致:

  1. 软中断没法触发
  2. 各种定时任务无法运行。

要实现以上功能,我认为需要设置acpi pm timer的定时器中断,然后在中断里面模仿hpet的处理逻辑去做。

参考

  1. https://wiki.osdev.org/ACPI_Timer

IRQs
The ACPI Power Management Timer generates a SCI when the counter has overflown. To know more about SCIs, see FADT#SCI_Interrupt.

  1. https://wiki.osdev.org/FADT#SCI_Interrupt
@fslongjin fslongjin added bug Something isn't working A-driver Area: 驱动程序 bug-report 这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label) labels Apr 28, 2024
@fslongjin fslongjin added this to the DragonOS 0.1.11 milestone Apr 28, 2024
@dragonosbot dragonosbot added the needs-triage 这个问题可能需要分类处理。如果已经完成分类,请移除它。 label Apr 28, 2024
@fslongjin
Copy link
Member Author

@1037827920

@fslongjin fslongjin removed the needs-triage 这个问题可能需要分类处理。如果已经完成分类,请移除它。 label Apr 28, 2024
@fslongjin
Copy link
Member Author

我正在修复这个bug

@fslongjin
Copy link
Member Author

目前想了想,感觉应该用这个思路去做,而不是启用acpi pm timer的中断:
https://bbs.dragonos.org.cn/t/topic/214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: 驱动程序 bug Something isn't working bug-report 这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label) In-progress
Projects
None yet
Development

No branches or pull requests

2 participants