Skip to content

pbkit: Dynamically compute PTIMER parameters#775

Open
thrimbor wants to merge 1 commit into
XboxDev:masterfrom
thrimbor:pbkit_ptimer
Open

pbkit: Dynamically compute PTIMER parameters#775
thrimbor wants to merge 1 commit into
XboxDev:masterfrom
thrimbor:pbkit_ptimer

Conversation

@thrimbor

Copy link
Copy Markdown
Member

Split out from other pbkit changes, original commit is thrimbor@3a1faf3

It's what I consider a proper solution for the PTIMER initialization issue, deriving the parameters from the chip register values like #695 did for the performance counters, instead of only using them for checking assumptions like it is now.
On a stock Xbox it results in a 31.25MHz PTIMER frequency like the XDK has hard-coded, and it should manage to configure the same frequency on an overclocked system, though I only was able to test the former.

Fixes #536
Supersedes #621, which I don't consider good enough because it only removes the check without attempting to handle what it checked for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

pbkit quits if the nvclk freq is not default

1 participant