Commit d6e3e721 authored by Siarhei Siamashka's avatar Siarhei Siamashka Committed by Alejandro Mery
Browse files

meminfo: fix 'dram_tpr3' reporting

Get it from the dllcr registers instead of always returning 0.
parent b4b48e02
......@@ -229,6 +229,11 @@ int main(int argc, char **argv)
p.tpr0 = r->tpr0;
p.tpr1 = r->tpr1;
p.tpr2 = r->tpr2;
p.tpr3 = ((((r->dllcr[0]) >> 6) & 0x3f) << 16) |
((((r->dllcr[1]) >> 14) & 0xf) << 0) |
((((r->dllcr[2]) >> 14) & 0xf) << 4) |
((((r->dllcr[3]) >> 14) & 0xf) << 8) |
((((r->dllcr[4]) >> 14) & 0xf) << 12);
p.emr1 = r->emr;
p.emr2 = r->emr2;
p.emr3 = r->emr3;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment