]>
Commit | Line | Data |
---|---|---|
4b79797e | 1 | /*++\r |
2 | \r | |
4ea9375a HT |
3 | Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
4b79797e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | CpuFlushCache.c\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Cpu Flush Cache Function.\r | |
19 | \r | |
20 | --*/\r | |
21 | #include "Tiano.h"\r | |
22 | #include "EfiRuntimeLib.h"\r | |
23 | \r | |
24 | //\r | |
25 | // Cache Flush Routine.\r | |
26 | //\r | |
27 | EFI_STATUS\r | |
28 | EfiCpuFlushCache (\r | |
29 | IN EFI_PHYSICAL_ADDRESS Start,\r | |
30 | IN UINT64 Length\r | |
31 | )\r | |
32 | /*++\r | |
33 | \r | |
34 | Routine Description:\r | |
35 | \r | |
36 | Flush cache with specified range.\r | |
37 | \r | |
38 | Arguments:\r | |
39 | \r | |
40 | Start - Start address\r | |
41 | Length - Length in bytes\r | |
42 | \r | |
43 | Returns:\r | |
44 | \r | |
45 | Status code\r | |
46 | \r | |
47 | EFI_SUCCESS - success\r | |
48 | \r | |
49 | --*/\r | |
50 | {\r | |
51 | __asm {\r | |
52 | wbinvd\r | |
53 | }\r | |
54 | return EFI_SUCCESS;\r | |
55 | }\r |