4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IPF specific types, macros, and definitions for Debug Support Driver.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCopyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncThis program and the accompanying materials
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncare licensed and made available under the terms and conditions of the BSD License
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncwhich accompanies this distribution. The full text of the license may be found at
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctypedef struct {
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IPF specific DebugSupport driver initialization.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Must be public because it's referenced from DebugSupport.c
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Always.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Unload handler that is called during UnloadImage() - deallocates pool memory
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync used by the driver.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Must be public because it's referenced from DebugSuport.c
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ImageHandle The firmware allocated handle for the EFI image.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Always.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync C callable function to obtain the current value of IVA.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Current value of IVA.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync C callable function that HookStub will be copied from it's loaded location into the IVT when
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync an IVT entry is hooked.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync C callable function to chain an interrupt handler.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync C callable function to unchain an interrupt handler.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync C callable function to enable/disable interrupts.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NewInterruptState New Interrupt State.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Previous state of psr.ic.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Flushes instruction cache for specified number of bytes.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param StartAddress Cache Start Address.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SizeInBytes Cache Size.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the maximum value that may be used for the ProcessorIndex parameter in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync RegisterPeriodicCallback() and RegisterExceptionCallback().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Hard coded to support only 1 processor for now.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param This A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param MaxProcessorIndex Pointer to a caller-allocated UINTN in which the maximum supported
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync processor index is returned. Always 0 returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Always returned with **MaxProcessorIndex set to 0.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Registers a function to be called back periodically in interrupt context.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param This A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ProcessorIndex Specifies which processor the callback function applies to.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param PeriodicCallback A pointer to a function of type PERIODIC_CALLBACK that is the main
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync periodic entry point of the debug agent.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS The function completed successfully.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_ALREADY_STARTED Non-NULL PeriodicCallback parameter when a callback
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync function was previously registered.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_OUT_OF_RESOURCES System has insufficient memory resources to register new callback
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Registers a function to be called when a given processor exception occurs.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This code executes in boot services context.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param This A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ProcessorIndex Specifies which processor the callback function applies to.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ExceptionCallback A pointer to a function of type EXCEPTION_CALLBACK that is called
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync when the processor exception specified by ExceptionType occurs.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ExceptionType Specifies which processor exception to hook.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS The function completed successfully.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_ALREADY_STARTED Non-NULL PeriodicCallback parameter when a callback
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync function was previously registered.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_OUT_OF_RESOURCES System has insufficient memory resources to register new callback
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Invalidates processor instruction cache for a memory range. Subsequent execution in this range
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync causes a fresh memory fetch to retrieve code to be executed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param This A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ProcessorIndex Specifies which processor's instruction cache is to be invalidated.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Start Specifies the physical base of the memory range to be invalidated.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Length Specifies the minimum number of bytes in the processor's instruction
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync cache to invalidate.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Always returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync C routine that is called for all registered exceptions. This is the main
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync exception dispatcher.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Must be public because it's referenced from AsmFuncs.s.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ExceptionType Specifies which processor exception.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Context System Context.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This is the worker function that uninstalls and removes all handlers.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ExceptionType Specifies which processor exception.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NewBundles New Boundles.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NewCallback A pointer to the new function to be registered.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_ALEADY_STARTED Ivt already hooked.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Successfully uninstalled.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Saves original IVT contents and inserts a few new bundles which are fixed up
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to store the ExceptionType and then call the common handler.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ExceptionType Specifies which processor exception.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NewBundles New Boundles.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NewCallback A pointer to the new function to be hooked.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Restores original IVT contents when unregistering a callback function.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ExceptionType Specifies which processor exception.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets up cache flush and calls assembly function to chain external interrupt.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Records new callback in IvtEntryTable.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NewCallback A pointer to the interrupt handle.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets up cache flush and calls assembly function to restore external interrupt.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Removes registered callback from IvtEntryTable.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Given an integer number, return the physical address of the entry point in the IFT.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param HandlerIndex Index of the Handler
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param EntryPoint IFT Entrypoint