summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/interrupt.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some dead code: unnecessary isyncs and memory sorting, which arenwhitehorn2011-06-021-3/+1
| | | | handled in mtmsr() and mem_regions(), respectively.
* Update PowerPC event timer code to use new event timers infrastructure.mav2010-09-111-1/+5
| | | | | | Reviewed by: nwitehorn Tested by: andreast H/W donated by: Gheorghe Ardelean
* Provide for multiple, cascaded PICs on PowerPC systems, and extend thenwhitehorn2010-06-181-1/+1
| | | | | | OFW interrupt map interface to also return the device's interrupt parent. MFC after: 8.1-RELEASE
* Place interrupt handling in a critical section and remove doublenwhitehorn2010-03-091-2/+4
| | | | | | | | | | | counting in incrementing the interrupt nesting level. This fixes a number of bugs in which the interrupt thread could be preempted by an IPI, indefinitely delaying acknowledgement of the interrupt to the PIC, causing interrupt starvation and hangs. Reported by: linimon Reviewed by: marcel, jhb MFC after: 1 week
* Trace interrupts with KTR_INTR.marcel2008-08-311-0/+2
|
* Revamp the interrupt handling in support of INTR_FILTER. This includes:marcel2007-08-111-15/+4
| | | | | | | | | | | | | | | | | | | | | | | o Revamp the PIC I/F to only abstract the PIC hardware. The resource handling has been moved to nexus, where it belongs. o Include EOI and MASK+EOI methods to the PIC I/F in support of INTR_FILTER. o With the allocation of interrupt resources and setup of interrupt handlers in the common platform code we can delay talking to the PIC hardware after enumeration of all devices. Introduce a call to powerpc_intr_enable() in configure_final() to achieve that and have powerpc_setup_intr() only program the PIC when !cold. o As a consequence of the above, remove all early_attach() glue from the OpenPIC and Heathrow PIC drivers and have them register themselves when they're found during enumeration. o Decouple the interrupt vector from the interrupt request line. Allocate vectors increasingly so that they can be used for the intrcnt index as well. Extend the Heathrow PIC driver to translate between IRQ and vector. The OpenPIC driver already has the support for vectors in hardware. Approved by: re (blanket)
* Re-enable external interrupts for faults, traps and syscalls.marcel2007-08-081-9/+8
| | | | Approved by: re (blanket)
* Eliminate <machine/interruptvar.h> as it has only a singlemarcel2007-08-071-2/+1
| | | | | | | prototype. In the future that prototype will not be needed at all anyway, but for now it's moved to intr_machdep.h. Approved by: re (blanket)
* Tweak how the MD code calls the fooclock() methods some. Instead ofjhb2005-12-221-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | passing a pointer to an opaque clockframe structure and requiring the MD code to supply CLKF_FOO() macros to extract needed values out of the opaque structure, just pass the needed values directly. In practice this means passing the pair (usermode, pc) to hardclock() and profclock() and passing the boolean (usermode) to hardclock_cpu() and hardclock_process(). Other details: - Axe clockframe and CLKF_FOO() macros on all architectures. Basically, all the archs were taking a trapframe and converting it into a clockframe one way or another. Now they can just extract the PC and usermode values directly out of the trapframe and pass it to fooclock(). - Renamed hardclock_process() to hardclock_cpu() as the latter is more accurate. - On Alpha, we now run profclock() at hz (profhz == hz) rather than at the slower stathz. - On Alpha, for the TurboLaser machines that don't have an 8254 timecounter, call hardclock() directly. This removes an extra conditional check from every clock interrupt on Alpha on the BSP. There is probably room for even further pruning here by changing Alpha to use the simplified timecounter we use on x86 with the lapic timer since we don't get interrupts from the 8254 on Alpha anyway. - On x86, clkintr() shouldn't ever be called now unless using_lapic_timer is false, so add a KASSERT() to that affect and remove a condition to slightly optimize the non-lapic case. - Change prototypeof arm_handler_execute() so that it's first arg is a trapframe pointer rather than a void pointer for clarity. - Use KCOUNT macro in profclock() to lookup the kernel profiling bucket. Tested on: alpha, amd64, arm, i386, ia64, sparc64 Reviewed by: bde (mostly)
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* Be more conservative about re-enabling interrupts during trap processinggrehan2003-01-081-1/+1
| | | | | | until atomic issues are fully sorted. Approved by: benno
* - moved intrcnt/intrnames to locore.s to fix sysctl -a panicgrehan2002-09-191-6/+0
| | | | Approved by: benno
* Many fixes to low-level trap and interrupt handling:benno2002-06-291-0/+123
- Tidy up clock code. Don't repeatedly call hardclock(). - Remove intrnames, decrnest and intrcnt from locore.s - Coalesce all trap handling into a single stub that then calls a dispatch function. Submitted by: Peter Grehan <peterg@ptree32.com.au>
OpenPOWER on IntegriCloud