Forum Discussion
AnilErinch_A_Intel
Frequent Contributor
6 years agoHi,
Can you try the code snippet below and let us know the results
static const struct socfpga_reset_manager *reset_manager_base = (void *)SOCFPGA_RSTMGR_ADDRESS;
int cause;
cause = readl(&reset_manager_base->status) &0xFFFFFFFF;
Regards
Anil
- GGeor256 years ago
New Contributor
Hi,
No, it is not working. I will try some assembly routine tomorrow using tst instructions. I still think it is due to incorrect access or this is done after some code relocation and read a wrong place...
By the way what is the difference between your code and mine? I see in all cases always 0.