Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Changing monotonic timer: (3 Items)
   
Changing monotonic timer  
Hi

I need to simulate situation when software runs for long time. Is there a way to change monotonic timer so that it 
returned more than 0x10 0000 0000 0000? I know there is no legal way, but I'm OK with a hack like writing the memory in 
_syspage_ptr->qtime (unfortunately it appears to be mapped as read-only). How can I determine physical address of that 
memory? Can I modify it via /dev/mem?

Thank you in advance.
Re: Changing monotonic timer  
> Hi
> 
> I need to simulate situation when software runs for long time. Is there a way 
> to change monotonic timer so that it returned more than 0x10 0000 0000 0000? I
>  know there is no legal way, but I'm OK with a hack like writing the memory in
>  _syspage_ptr->qtime (unfortunately it appears to be mapped as read-only). How
>  can I determine physical address of that memory? Can I modify it via /dev/mem
> ?
> 
> Thank you in advance.


I guess you could find the physical address via mem_offset64, then mmap it with write permission.
Re: Changing monotonic timer  
It works. Thank you.