]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Don't announce that the timer is good when in fact it isn't timing
authorMarcel Moolenaar <marcel@FreeBSD.org>
Wed, 30 Apr 2003 05:27:01 +0000 (05:27 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Wed, 30 Apr 2003 05:27:01 +0000 (05:27 +0000)
commit214475d865402bbbf99ebcc939ba9988d9f9e782
treef4b2dc162bf160d69f669672742689e2bcda5031
parent1d2945d595b38851b12873d1327a2259bd0bf83e
o  Don't announce that the timer is good when in fact it isn't timing
   at all (ie reads yield constant values). Display the width as the
   difference between max and min so that constant timers have width
   zero.
o  Get the address of the timer from the XPmTmrBlk field instead of
   the V1_PmTmrBlk field. The former is a generic address and can
   specify a memory mapped I/O address. Remove <machine/bus_pio.h>
   to account for this. The timer is now properly configured on
   machines with ACPI v2 tables, whether PIO or MEMIO. Note that
   the acpica code converts v1 tables into v2 tables so the address
   is always present in XPmTmrBlk.
o  Replace the TIMER_READ macro with a call to the read_counter()
   function and add a barrier to make sure that we observe proper
   ordering of the reads.
sys/dev/acpica/acpi_timer.c