Re: Interrupt Question

From: arya (arya.junkmail_at_gmail.com)
Date: 02/25/05


Date: 24 Feb 2005 19:43:58 -0800

What processor do you use? Most motorola processors lock the low byte
of their counters in a buffer if you access teh high byte first. This
way, as long as you read the high byte first and then the low byte, you
are sure of getting the value of the counter when you initiated the
read.

Also there MPU/MCUs don't allow you to preempt and interrupt with
another unless you explicitly clear the interrupt mask. The interrupt
mask is set when you enter the interrupt.

-- Arya



Relevant Pages

  • Re: High DPC Use and a Method to Reboot a network card?
    ... This is very bad as on some machines these DPCs all ... the driver's MiniportHalt() and MiniportStartroutines to be invoked ... suspect it has hardware statistics counters. ... interrupt varies depending on the chip. ...
    (microsoft.public.development.device.drivers)
  • Re: [RFC3 02/14] Basic counter functionality
    ... > There is no need to disable interrupts AFAICS, but only preemption ... Some of the counters can be accessed at interrupt time and these are meant ...
    (Linux-Kernel)
  • Re: register_timer_hook use in arch/sh/oprofile
    ... made full-blown hardware counters, which in the end would be ... metric' they do interrupt periods in an 'irregular' way (because ... they interrupt in the nanosec metric - being hrtimers) - but both ... architecture code. ...
    (Linux-Kernel)
  • [PATCH][2.6.10-rc1-mm4][0/4] perfctr interrupt fixes
    ... This set of patches fixes a problem where a perfctr ... pending counter overflow can be delivered as a local ... APIC interrupt _after_ the counters have been disabled. ...
    (Linux-Kernel)
  • Some interesting observations when trying to optimize vmstat handling
    ... I looked into getting rid of the interrupt enable/disable when updating vm ... The processing of the counters got too complex. ... Update the zone counters for one cpu. ... #ifdef CONFIG_NUMA ...
    (Linux-Kernel)