3 Copyright 2005 - 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23 #include EFI_GUID_DEFINITION (PeiFlushInstructionCache)
24 #include EFI_GUID_DEFINITION (PeiTransferControl)
31 TransferControlSetJump (
32 IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL
*This
,
38 TransferControlLongJump (
39 IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL
*This
,
45 FlushInstructionCacheFlush (
46 IN EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL
*This
,
47 IN EFI_PHYSICAL_ADDRESS Start
,
54 EFI_PEI_TRANSFER_CONTROL_PROTOCOL mTransferControl
= {
55 TransferControlSetJump
,
56 TransferControlLongJump
,
57 sizeof (EFI_JUMP_BUFFER
)
60 EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL mFlushInstructionCache
= {
61 FlushInstructionCacheFlush
67 InstallEfiPeiTransferControl(
68 IN OUT EFI_PEI_TRANSFER_CONTROL_PROTOCOL
**This
74 Installs the pointer to the transfer control mechanism
78 This - Pointer to transfer control mechanism.
82 This - Pointer to transfer control mechanism.
86 *This
= &mTransferControl
;
87 mTransferControl
.SetJump
= TransferControlSetJump
;
88 mTransferControl
.LongJump
= TransferControlLongJump
;
95 InstallEfiPeiFlushInstructionCache (
96 IN OUT EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL
**This
102 Installs the pointer to the flush instruction cache mechanism
106 This - Pointer to flush instruction cache mechanism.
110 This - Pointer to flush instruction cache mechanism.
114 *This
= &mFlushInstructionCache
;
115 mFlushInstructionCache
.Flush
= FlushInstructionCacheFlush
;
122 FlushInstructionCacheFlush (
123 IN EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL
*This
,
124 IN EFI_PHYSICAL_ADDRESS Start
,
131 This routine would provide support for flushing the CPU instruction cache.
132 In the case of IA32, this flushing is not necessary and is thus not implemented.
136 Pointer to CPU Architectural Protocol interface
137 Start adddress in memory to flush
138 Length of memory to flush