2 Template for ArmEb DebugAgentLib.
4 For ARM we reserve FIQ for the Debug Agent Timer. We don't care about
5 laytency as we only really need the timer to run a few times a second
6 (how fast can some one type a ctrl-c?), but it works much better if
7 the interrupt we are using to break into the debugger is not being
8 used, and masked, by the system.
10 Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
12 This program and the accompanying materials
13 are licensed and made available under the terms and conditions of the BSD License
14 which accompanies this distribution. The full text of the license may be found at
15 http://opensource.org/licenses/bsd-license.php
17 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
24 #include <Library/DebugAgentTimerLib.h>
29 Setup all the hardware needed for the debug agents timer.
31 This function is used to set up debug enviroment.
36 DebugAgentTimerIntialize (
45 Set the period for the debug agent timer. Zero means disable the timer.
47 @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer.
52 DebugAgentTimerSetPeriod (
53 IN UINT32 TimerPeriodMilliseconds
56 if (TimerPeriodMilliseconds
== 0) {
57 // Disable timer and Disable FIQ
61 // Set timer period and unmask FIQ
66 Perform End Of Interrupt for the debug agent timer. This is called in the
67 interrupt handler after the interrupt has been processed.
72 DebugAgentTimerEndOfInterrupt (
76 // EOI Timer interrupt for FIQ