]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Begin implementing correct MIPS24K sampling mode behaviour.
authoradrian <adrian@FreeBSD.org>
Fri, 7 Oct 2011 06:13:38 +0000 (06:13 +0000)
committeradrian <adrian@FreeBSD.org>
Fri, 7 Oct 2011 06:13:38 +0000 (06:13 +0000)
commit43d046c97a20bc0e31e43dbb644035f79a8ecf1a
tree3959c47af922fc710a6028743f45d8774ce8ca0a
parenta2b5592daeb3832bd468c2f86946f4e3e4e6090f
Begin implementing correct MIPS24K sampling mode behaviour.

* Add the interrupt bit in the configuration register
* Correctly set the counter register for the sampling overflow
  interrupt. The interrupt is asserted when bit 31 is set.
  So set the overflow value at 0x80000000 and subtract the
  programmed value as appropriate.
sys/dev/hwpmc/hwpmc_mips24k.h