Skip to content

Conversation

@n0tShayan
Copy link

This PR removes the redundant w_mie(r_mie() | MIE_STIE); line in timerinit().

Reason:

  • Timer interrupts are already enabled in start() via SIE_STIE.
  • The interrupt is delegated to S-mode, so only SIE matters.
  • The MIE_STIE write in timerinit() is redundant and unnecessary.

This follows the RISC-V spec and discussion in Issue #422.

Closes: #422

Remove redundant MIE_STIE enable in timerinit (fix Issue mit-pdos#422)
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

Successfully merging this pull request may close these issues.

Need not enable mie.STIE after we have enabled sie.STIE

1 participant