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

[priv] triggering a timer interrupt directly after returning from kernel decrements the PC by 4 #9

Open
AntonLydike opened this issue Mar 27, 2022 · 0 comments
Assignees

Comments

@AntonLydike
Copy link
Owner

See the attached screenshot for an example:
grafik

The kernel returns to user mode at _start (0x34e8) + 0x10. A timer interrupt is taken immediately (all user mode instructions are printed), the kernel then reschedules the thread (as it is the only active one), but resumes at _start (0x34e8) + 0xc, 4 bytes (or one instruction) before the previous return.

@AntonLydike AntonLydike self-assigned this Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant