| |

VerySource

 Forgot password?
 Register
Search
View: 1941|Reply: 6

How do I debug a clock interrupt?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-4 15:30:01
| Show all posts |Read mode
As the question, if 8259A is set up, the interrupt is turned on, and then a jmp $, the question is how to debug the clock interrupt handler?
I searched this question online, no.
I look forward to your confusion! Thanks in advance!
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-5 17:36:01
| Show all posts
Breakpoints directly at the code
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-5 19:21:02
| Show all posts
Are you referring to breaking points in interrupt handlers?
Reply

Use magic Report

2

Threads

16

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 United States

Post time: 2020-4-16 09:15:01
| Show all posts
What level of interrupt handler are you talking about?
If you only deal with it in your own program, you can directly set a breakpoint, but if you want to debug the system's interrupt handler, then:

If it is DOS, you can directly access the address where the interrupt handler is located. Under WINDOWS, you must make your debugging code have RING0 level permissions, you can use a virtual drive or WINIO (commonly used), create interrupt descriptors and other methods .
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-22 16:45:01
| Show all posts
falconwbgjdl, I was debugging in protected mode ring0, debugging the clock interrupt program, is the hardware interrupt. IDT has been set up, JMP (here), is to wait for the occurrence of a clock interrupt. Can't make a breakpoint!
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-8-8 10:30:01
| Show all posts
shieldreminds me, thank you, why didn’t I expect it?
At the same time, thank you for your kindfalconwbgjdl!
Reply

Use magic Report

0

Threads

15

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

Post time: 2020-8-8 12:30:01
| Show all posts
windows ring0?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list