VirtualBox

Ignore:
Timestamp:
Sep 11, 2019 8:46:37 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133262
Message:

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/BaseLib/BaseLibInternals.h

    r77662 r80721  
    22  Declaration of internal functions in BaseLib.
    33
    4   Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
    5   This program and the accompanying materials
    6   are licensed and made available under the terms and conditions of the BSD License
    7   which accompanies this distribution.  The full text of the license may be found at
    8   http://opensource.org/licenses/bsd-license.php.
    9 
    10   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    11   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     4  Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
     5  SPDX-License-Identifier: BSD-2-Clause-Patent
    126
    137**/
     
    471465
    472466/**
    473   Convert a Unicode character to upper case only if
    474   it maps to a valid small-case ASCII character.
    475 
    476   This internal function only deal with Unicode character
    477   which maps to a valid small-case ASCII character, i.e.
    478   L'a' to L'z'. For other Unicode character, the input character
    479   is returned directly.
    480 
    481   @param  Char  The character to convert.
    482 
    483   @retval LowerCharacter   If the Char is with range L'a' to L'z'.
    484   @retval Unchanged        Otherwise.
    485 
    486 **/
    487 CHAR16
    488 EFIAPI
    489 InternalCharToUpper (
    490   IN      CHAR16                    Char
    491   );
    492 
    493 
    494 /**
    495467  Convert a Unicode character to numerical value.
    496468
     
    550522InternalAsciiIsDecimalDigitCharacter (
    551523  IN      CHAR8                     Char
    552   );
    553 
    554 
    555 /**
    556   Converts a lowercase Ascii character to upper one.
    557 
    558   If Chr is lowercase Ascii character, then converts it to upper one.
    559 
    560   If Value >= 0xA0, then ASSERT().
    561   If (Value & 0x0F) >= 0x0A, then ASSERT().
    562 
    563   @param  Chr   one Ascii character
    564 
    565   @return The uppercase value of Ascii character
    566 
    567 **/
    568 CHAR8
    569 EFIAPI
    570 InternalBaseLibAsciiToUpper (
    571   IN      CHAR8                     Chr
    572524  );
    573525
     
    911863  );
    912864
    913 
    914 #elif defined (MDE_CPU_IPF)
    915 //
    916 //
    917 // IPF specific functions
    918 //
    919 
    920 /**
    921   Reads control register DCR.
    922 
    923   This is a worker function for AsmReadControlRegister()
    924   when its parameter Index is IPF_CONTROL_REGISTER_DCR.
    925 
    926   @return The 64-bit control register DCR.
    927 
    928 **/
    929 UINT64
    930 EFIAPI
    931 AsmReadControlRegisterDcr (
    932   VOID
    933   );
    934 
    935 
    936 /**
    937   Reads control register ITM.
    938 
    939   This is a worker function for AsmReadControlRegister()
    940   when its parameter Index is IPF_CONTROL_REGISTER_ITM.
    941 
    942   @return The 64-bit control register ITM.
    943 
    944 **/
    945 UINT64
    946 EFIAPI
    947 AsmReadControlRegisterItm (
    948   VOID
    949   );
    950 
    951 
    952 /**
    953   Reads control register IVA.
    954 
    955   This is a worker function for AsmReadControlRegister()
    956   when its parameter Index is IPF_CONTROL_REGISTER_IVA.
    957 
    958   @return The 64-bit control register IVA.
    959 
    960 **/
    961 UINT64
    962 EFIAPI
    963 AsmReadControlRegisterIva (
    964   VOID
    965   );
    966 
    967 
    968 /**
    969   Reads control register PTA.
    970 
    971   This is a worker function for AsmReadControlRegister()
    972   when its parameter Index is IPF_CONTROL_REGISTER_PTA.
    973 
    974   @return The 64-bit control register PTA.
    975 
    976 **/
    977 UINT64
    978 EFIAPI
    979 AsmReadControlRegisterPta (
    980   VOID
    981   );
    982 
    983 
    984 /**
    985   Reads control register IPSR.
    986 
    987   This is a worker function for AsmReadControlRegister()
    988   when its parameter Index is IPF_CONTROL_REGISTER_IPSR.
    989 
    990   @return The 64-bit control register IPSR.
    991 
    992 **/
    993 UINT64
    994 EFIAPI
    995 AsmReadControlRegisterIpsr (
    996   VOID
    997   );
    998 
    999 
    1000 /**
    1001   Reads control register ISR.
    1002 
    1003   This is a worker function for AsmReadControlRegister()
    1004   when its parameter Index is IPF_CONTROL_REGISTER_ISR.
    1005 
    1006   @return The 64-bit control register ISR.
    1007 
    1008 **/
    1009 UINT64
    1010 EFIAPI
    1011 AsmReadControlRegisterIsr (
    1012   VOID
    1013   );
    1014 
    1015 
    1016 /**
    1017   Reads control register IIP.
    1018 
    1019   This is a worker function for AsmReadControlRegister()
    1020   when its parameter Index is IPF_CONTROL_REGISTER_IIP.
    1021 
    1022   @return The 64-bit control register IIP.
    1023 
    1024 **/
    1025 UINT64
    1026 EFIAPI
    1027 AsmReadControlRegisterIip (
    1028   VOID
    1029   );
    1030 
    1031 
    1032 /**
    1033   Reads control register IFA.
    1034 
    1035   This is a worker function for AsmReadControlRegister()
    1036   when its parameter Index is IPF_CONTROL_REGISTER_IFA.
    1037 
    1038   @return The 64-bit control register IFA.
    1039 
    1040 **/
    1041 UINT64
    1042 EFIAPI
    1043 AsmReadControlRegisterIfa (
    1044   VOID
    1045   );
    1046 
    1047 
    1048 /**
    1049   Reads control register ITIR.
    1050 
    1051   This is a worker function for AsmReadControlRegister()
    1052   when its parameter Index is IPF_CONTROL_REGISTER_ITIR.
    1053 
    1054   @return The 64-bit control register ITIR.
    1055 
    1056 **/
    1057 UINT64
    1058 EFIAPI
    1059 AsmReadControlRegisterItir (
    1060   VOID
    1061   );
    1062 
    1063 
    1064 /**
    1065   Reads control register IIPA.
    1066 
    1067   This is a worker function for AsmReadControlRegister()
    1068   when its parameter Index is IPF_CONTROL_REGISTER_IIPA.
    1069 
    1070   @return The 64-bit control register IIPA.
    1071 
    1072 **/
    1073 UINT64
    1074 EFIAPI
    1075 AsmReadControlRegisterIipa (
    1076   VOID
    1077   );
    1078 
    1079 
    1080 /**
    1081   Reads control register IFS.
    1082 
    1083   This is a worker function for AsmReadControlRegister()
    1084   when its parameter Index is IPF_CONTROL_REGISTER_IFS.
    1085 
    1086   @return The 64-bit control register IFS.
    1087 
    1088 **/
    1089 UINT64
    1090 EFIAPI
    1091 AsmReadControlRegisterIfs (
    1092   VOID
    1093   );
    1094 
    1095 
    1096 /**
    1097   Reads control register IIM.
    1098 
    1099   This is a worker function for AsmReadControlRegister()
    1100   when its parameter Index is IPF_CONTROL_REGISTER_IIM.
    1101 
    1102   @return The 64-bit control register IIM.
    1103 
    1104 **/
    1105 UINT64
    1106 EFIAPI
    1107 AsmReadControlRegisterIim (
    1108   VOID
    1109   );
    1110 
    1111 
    1112 /**
    1113   Reads control register IHA.
    1114 
    1115   This is a worker function for AsmReadControlRegister()
    1116   when its parameter Index is IPF_CONTROL_REGISTER_IHA.
    1117 
    1118   @return The 64-bit control register IHA.
    1119 
    1120 **/
    1121 UINT64
    1122 EFIAPI
    1123 AsmReadControlRegisterIha (
    1124   VOID
    1125   );
    1126 
    1127 
    1128 /**
    1129   Reads control register LID.
    1130 
    1131   This is a worker function for AsmReadControlRegister()
    1132   when its parameter Index is IPF_CONTROL_REGISTER_LID.
    1133 
    1134   @return The 64-bit control register LID.
    1135 
    1136 **/
    1137 UINT64
    1138 EFIAPI
    1139 AsmReadControlRegisterLid (
    1140   VOID
    1141   );
    1142 
    1143 
    1144 /**
    1145   Reads control register IVR.
    1146 
    1147   This is a worker function for AsmReadControlRegister()
    1148   when its parameter Index is IPF_CONTROL_REGISTER_IVR.
    1149 
    1150   @return The 64-bit control register IVR.
    1151 
    1152 **/
    1153 UINT64
    1154 EFIAPI
    1155 AsmReadControlRegisterIvr (
    1156   VOID
    1157   );
    1158 
    1159 
    1160 /**
    1161   Reads control register TPR.
    1162 
    1163   This is a worker function for AsmReadControlRegister()
    1164   when its parameter Index is IPF_CONTROL_REGISTER_TPR.
    1165 
    1166   @return The 64-bit control register TPR.
    1167 
    1168 **/
    1169 UINT64
    1170 EFIAPI
    1171 AsmReadControlRegisterTpr (
    1172   VOID
    1173   );
    1174 
    1175 
    1176 /**
    1177   Reads control register EOI.
    1178 
    1179   This is a worker function for AsmReadControlRegister()
    1180   when its parameter Index is IPF_CONTROL_REGISTER_EOI.
    1181 
    1182   @return The 64-bit control register EOI.
    1183 
    1184 **/
    1185 UINT64
    1186 EFIAPI
    1187 AsmReadControlRegisterEoi (
    1188   VOID
    1189   );
    1190 
    1191 
    1192 /**
    1193   Reads control register IRR0.
    1194 
    1195   This is a worker function for AsmReadControlRegister()
    1196   when its parameter Index is IPF_CONTROL_REGISTER_IRR0.
    1197 
    1198   @return The 64-bit control register IRR0.
    1199 
    1200 **/
    1201 UINT64
    1202 EFIAPI
    1203 AsmReadControlRegisterIrr0 (
    1204   VOID
    1205   );
    1206 
    1207 
    1208 /**
    1209   Reads control register IRR1.
    1210 
    1211   This is a worker function for AsmReadControlRegister()
    1212   when its parameter Index is IPF_CONTROL_REGISTER_IRR1.
    1213 
    1214   @return The 64-bit control register IRR1.
    1215 
    1216 **/
    1217 UINT64
    1218 EFIAPI
    1219 AsmReadControlRegisterIrr1 (
    1220   VOID
    1221   );
    1222 
    1223 
    1224 /**
    1225   Reads control register IRR2.
    1226 
    1227   This is a worker function for AsmReadControlRegister()
    1228   when its parameter Index is IPF_CONTROL_REGISTER_IRR2.
    1229 
    1230   @return The 64-bit control register IRR2.
    1231 
    1232 **/
    1233 UINT64
    1234 EFIAPI
    1235 AsmReadControlRegisterIrr2 (
    1236   VOID
    1237   );
    1238 
    1239 
    1240 /**
    1241   Reads control register IRR3.
    1242 
    1243   This is a worker function for AsmReadControlRegister()
    1244   when its parameter Index is IPF_CONTROL_REGISTER_IRR3.
    1245 
    1246   @return The 64-bit control register IRR3.
    1247 
    1248 **/
    1249 UINT64
    1250 EFIAPI
    1251 AsmReadControlRegisterIrr3 (
    1252   VOID
    1253   );
    1254 
    1255 
    1256 /**
    1257   Reads control register ITV.
    1258 
    1259   This is a worker function for AsmReadControlRegister()
    1260   when its parameter Index is IPF_CONTROL_REGISTER_ITV.
    1261 
    1262   @return The 64-bit control register ITV.
    1263 
    1264 **/
    1265 UINT64
    1266 EFIAPI
    1267 AsmReadControlRegisterItv (
    1268   VOID
    1269   );
    1270 
    1271 
    1272 /**
    1273   Reads control register PMV.
    1274 
    1275   This is a worker function for AsmReadControlRegister()
    1276   when its parameter Index is IPF_CONTROL_REGISTER_PMV.
    1277 
    1278   @return The 64-bit control register PMV.
    1279 
    1280 **/
    1281 UINT64
    1282 EFIAPI
    1283 AsmReadControlRegisterPmv (
    1284   VOID
    1285   );
    1286 
    1287 
    1288 /**
    1289   Reads control register CMCV.
    1290 
    1291   This is a worker function for AsmReadControlRegister()
    1292   when its parameter Index is IPF_CONTROL_REGISTER_CMCV.
    1293 
    1294   @return The 64-bit control register CMCV.
    1295 
    1296 **/
    1297 UINT64
    1298 EFIAPI
    1299 AsmReadControlRegisterCmcv (
    1300   VOID
    1301   );
    1302 
    1303 
    1304 /**
    1305   Reads control register LRR0.
    1306 
    1307   This is a worker function for AsmReadControlRegister()
    1308   when its parameter Index is IPF_CONTROL_REGISTER_LRR0.
    1309 
    1310   @return The 64-bit control register LRR0.
    1311 
    1312 **/
    1313 UINT64
    1314 EFIAPI
    1315 AsmReadControlRegisterLrr0 (
    1316   VOID
    1317   );
    1318 
    1319 
    1320 /**
    1321   Reads control register LRR1.
    1322 
    1323   This is a worker function for AsmReadControlRegister()
    1324   when its parameter Index is IPF_CONTROL_REGISTER_LRR1.
    1325 
    1326   @return The 64-bit control register LRR1.
    1327 
    1328 **/
    1329 UINT64
    1330 EFIAPI
    1331 AsmReadControlRegisterLrr1 (
    1332   VOID
    1333   );
    1334 
    1335 
    1336 /**
    1337   Reads application register K0.
    1338 
    1339   This is a worker function for AsmReadApplicationRegister()
    1340   when its parameter Index is IPF_APPLICATION_REGISTER_K0.
    1341 
    1342   @return The 64-bit application register K0.
    1343 
    1344 **/
    1345 UINT64
    1346 EFIAPI
    1347 AsmReadApplicationRegisterK0 (
    1348   VOID
    1349   );
    1350 
    1351 
    1352 
    1353 /**
    1354   Reads application register K1.
    1355 
    1356   This is a worker function for AsmReadApplicationRegister()
    1357   when its parameter Index is IPF_APPLICATION_REGISTER_K1.
    1358 
    1359   @return The 64-bit application register K1.
    1360 
    1361 **/
    1362 UINT64
    1363 EFIAPI
    1364 AsmReadApplicationRegisterK1 (
    1365   VOID
    1366   );
    1367 
    1368 
    1369 /**
    1370   Reads application register K2.
    1371 
    1372   This is a worker function for AsmReadApplicationRegister()
    1373   when its parameter Index is IPF_APPLICATION_REGISTER_K2.
    1374 
    1375   @return The 64-bit application register K2.
    1376 
    1377 **/
    1378 UINT64
    1379 EFIAPI
    1380 AsmReadApplicationRegisterK2 (
    1381   VOID
    1382   );
    1383 
    1384 
    1385 /**
    1386   Reads application register K3.
    1387 
    1388   This is a worker function for AsmReadApplicationRegister()
    1389   when its parameter Index is IPF_APPLICATION_REGISTER_K3.
    1390 
    1391   @return The 64-bit application register K3.
    1392 
    1393 **/
    1394 UINT64
    1395 EFIAPI
    1396 AsmReadApplicationRegisterK3 (
    1397   VOID
    1398   );
    1399 
    1400 
    1401 /**
    1402   Reads application register K4.
    1403 
    1404   This is a worker function for AsmReadApplicationRegister()
    1405   when its parameter Index is IPF_APPLICATION_REGISTER_K4.
    1406 
    1407   @return The 64-bit application register K4.
    1408 
    1409 **/
    1410 UINT64
    1411 EFIAPI
    1412 AsmReadApplicationRegisterK4 (
    1413   VOID
    1414   );
    1415 
    1416 
    1417 /**
    1418   Reads application register K5.
    1419 
    1420   This is a worker function for AsmReadApplicationRegister()
    1421   when its parameter Index is IPF_APPLICATION_REGISTER_K5.
    1422 
    1423   @return The 64-bit application register K5.
    1424 
    1425 **/
    1426 UINT64
    1427 EFIAPI
    1428 AsmReadApplicationRegisterK5 (
    1429   VOID
    1430   );
    1431 
    1432 
    1433 /**
    1434   Reads application register K6.
    1435 
    1436   This is a worker function for AsmReadApplicationRegister()
    1437   when its parameter Index is IPF_APPLICATION_REGISTER_K6.
    1438 
    1439   @return The 64-bit application register K6.
    1440 
    1441 **/
    1442 UINT64
    1443 EFIAPI
    1444 AsmReadApplicationRegisterK6 (
    1445   VOID
    1446   );
    1447 
    1448 
    1449 /**
    1450   Reads application register K7.
    1451 
    1452   This is a worker function for AsmReadApplicationRegister()
    1453   when its parameter Index is IPF_APPLICATION_REGISTER_K7.
    1454 
    1455   @return The 64-bit application register K7.
    1456 
    1457 **/
    1458 UINT64
    1459 EFIAPI
    1460 AsmReadApplicationRegisterK7 (
    1461   VOID
    1462   );
    1463 
    1464 
    1465 /**
    1466   Reads application register RSC.
    1467 
    1468   This is a worker function for AsmReadApplicationRegister()
    1469   when its parameter Index is IPF_APPLICATION_REGISTER_RSC.
    1470 
    1471   @return The 64-bit application register RSC.
    1472 
    1473 **/
    1474 UINT64
    1475 EFIAPI
    1476 AsmReadApplicationRegisterRsc (
    1477   VOID
    1478   );
    1479 
    1480 
    1481 /**
    1482   Reads application register BSP.
    1483 
    1484   This is a worker function for AsmReadApplicationRegister()
    1485   when its parameter Index is IPF_APPLICATION_REGISTER_BSP.
    1486 
    1487   @return The 64-bit application register BSP.
    1488 
    1489 **/
    1490 UINT64
    1491 EFIAPI
    1492 AsmReadApplicationRegisterBsp (
    1493   VOID
    1494   );
    1495 
    1496 
    1497 /**
    1498   Reads application register BSPSTORE.
    1499 
    1500   This is a worker function for AsmReadApplicationRegister()
    1501   when its parameter Index is IPF_APPLICATION_REGISTER_BSPSTORE.
    1502 
    1503   @return The 64-bit application register BSPSTORE.
    1504 
    1505 **/
    1506 UINT64
    1507 EFIAPI
    1508 AsmReadApplicationRegisterBspstore (
    1509   VOID
    1510   );
    1511 
    1512 
    1513 /**
    1514   Reads application register RNAT.
    1515 
    1516   This is a worker function for AsmReadApplicationRegister()
    1517   when its parameter Index is IPF_APPLICATION_REGISTER_RNAT.
    1518 
    1519   @return The 64-bit application register RNAT.
    1520 
    1521 **/
    1522 UINT64
    1523 EFIAPI
    1524 AsmReadApplicationRegisterRnat (
    1525   VOID
    1526   );
    1527 
    1528 
    1529 /**
    1530   Reads application register FCR.
    1531 
    1532   This is a worker function for AsmReadApplicationRegister()
    1533   when its parameter Index is IPF_APPLICATION_REGISTER_FCR.
    1534 
    1535   @return The 64-bit application register FCR.
    1536 
    1537 **/
    1538 UINT64
    1539 EFIAPI
    1540 AsmReadApplicationRegisterFcr (
    1541   VOID
    1542   );
    1543 
    1544 
    1545 /**
    1546   Reads application register EFLAG.
    1547 
    1548   This is a worker function for AsmReadApplicationRegister()
    1549   when its parameter Index is IPF_APPLICATION_REGISTER_EFLAG.
    1550 
    1551   @return The 64-bit application register EFLAG.
    1552 
    1553 **/
    1554 UINT64
    1555 EFIAPI
    1556 AsmReadApplicationRegisterEflag (
    1557   VOID
    1558   );
    1559 
    1560 
    1561 /**
    1562   Reads application register CSD.
    1563 
    1564   This is a worker function for AsmReadApplicationRegister()
    1565   when its parameter Index is IPF_APPLICATION_REGISTER_CSD.
    1566 
    1567   @return The 64-bit application register CSD.
    1568 
    1569 **/
    1570 UINT64
    1571 EFIAPI
    1572 AsmReadApplicationRegisterCsd (
    1573   VOID
    1574   );
    1575 
    1576 
    1577 /**
    1578   Reads application register SSD.
    1579 
    1580   This is a worker function for AsmReadApplicationRegister()
    1581   when its parameter Index is IPF_APPLICATION_REGISTER_SSD.
    1582 
    1583   @return The 64-bit application register SSD.
    1584 
    1585 **/
    1586 UINT64
    1587 EFIAPI
    1588 AsmReadApplicationRegisterSsd (
    1589   VOID
    1590   );
    1591 
    1592 
    1593 /**
    1594   Reads application register CFLG.
    1595 
    1596   This is a worker function for AsmReadApplicationRegister()
    1597   when its parameter Index is IPF_APPLICATION_REGISTER_CFLG.
    1598 
    1599   @return The 64-bit application register CFLG.
    1600 
    1601 **/
    1602 UINT64
    1603 EFIAPI
    1604 AsmReadApplicationRegisterCflg (
    1605   VOID
    1606   );
    1607 
    1608 
    1609 /**
    1610   Reads application register FSR.
    1611 
    1612   This is a worker function for AsmReadApplicationRegister()
    1613   when its parameter Index is IPF_APPLICATION_REGISTER_FSR.
    1614 
    1615   @return The 64-bit application register FSR.
    1616 
    1617 **/
    1618 UINT64
    1619 EFIAPI
    1620 AsmReadApplicationRegisterFsr (
    1621   VOID
    1622   );
    1623 
    1624 
    1625 /**
    1626   Reads application register FIR.
    1627 
    1628   This is a worker function for AsmReadApplicationRegister()
    1629   when its parameter Index is IPF_APPLICATION_REGISTER_FIR.
    1630 
    1631   @return The 64-bit application register FIR.
    1632 
    1633 **/
    1634 UINT64
    1635 EFIAPI
    1636 AsmReadApplicationRegisterFir (
    1637   VOID
    1638   );
    1639 
    1640 
    1641 /**
    1642   Reads application register FDR.
    1643 
    1644   This is a worker function for AsmReadApplicationRegister()
    1645   when its parameter Index is IPF_APPLICATION_REGISTER_FDR.
    1646 
    1647   @return The 64-bit application register FDR.
    1648 
    1649 **/
    1650 UINT64
    1651 EFIAPI
    1652 AsmReadApplicationRegisterFdr (
    1653   VOID
    1654   );
    1655 
    1656 
    1657 /**
    1658   Reads application register CCV.
    1659 
    1660   This is a worker function for AsmReadApplicationRegister()
    1661   when its parameter Index is IPF_APPLICATION_REGISTER_CCV.
    1662 
    1663   @return The 64-bit application register CCV.
    1664 
    1665 **/
    1666 UINT64
    1667 EFIAPI
    1668 AsmReadApplicationRegisterCcv (
    1669   VOID
    1670   );
    1671 
    1672 
    1673 /**
    1674   Reads application register UNAT.
    1675 
    1676   This is a worker function for AsmReadApplicationRegister()
    1677   when its parameter Index is IPF_APPLICATION_REGISTER_UNAT.
    1678 
    1679   @return The 64-bit application register UNAT.
    1680 
    1681 **/
    1682 UINT64
    1683 EFIAPI
    1684 AsmReadApplicationRegisterUnat (
    1685   VOID
    1686   );
    1687 
    1688 
    1689 /**
    1690   Reads application register FPSR.
    1691 
    1692   This is a worker function for AsmReadApplicationRegister()
    1693   when its parameter Index is IPF_APPLICATION_REGISTER_FPSR.
    1694 
    1695   @return The 64-bit application register FPSR.
    1696 
    1697 **/
    1698 UINT64
    1699 EFIAPI
    1700 AsmReadApplicationRegisterFpsr (
    1701   VOID
    1702   );
    1703 
    1704 
    1705 /**
    1706   Reads application register ITC.
    1707 
    1708   This is a worker function for AsmReadApplicationRegister()
    1709   when its parameter Index is IPF_APPLICATION_REGISTER_ITC.
    1710 
    1711   @return The 64-bit application register ITC.
    1712 
    1713 **/
    1714 UINT64
    1715 EFIAPI
    1716 AsmReadApplicationRegisterItc (
    1717   VOID
    1718   );
    1719 
    1720 
    1721 /**
    1722   Reads application register PFS.
    1723 
    1724   This is a worker function for AsmReadApplicationRegister()
    1725   when its parameter Index is IPF_APPLICATION_REGISTER_PFS.
    1726 
    1727   @return The 64-bit application register PFS.
    1728 
    1729 **/
    1730 UINT64
    1731 EFIAPI
    1732 AsmReadApplicationRegisterPfs (
    1733   VOID
    1734   );
    1735 
    1736 
    1737 /**
    1738   Reads application register LC.
    1739 
    1740   This is a worker function for AsmReadApplicationRegister()
    1741   when its parameter Index is IPF_APPLICATION_REGISTER_LC.
    1742 
    1743   @return The 64-bit application register LC.
    1744 
    1745 **/
    1746 UINT64
    1747 EFIAPI
    1748 AsmReadApplicationRegisterLc (
    1749   VOID
    1750   );
    1751 
    1752 
    1753 /**
    1754   Reads application register EC.
    1755 
    1756   This is a worker function for AsmReadApplicationRegister()
    1757   when its parameter Index is IPF_APPLICATION_REGISTER_EC.
    1758 
    1759   @return The 64-bit application register EC.
    1760 
    1761 **/
    1762 UINT64
    1763 EFIAPI
    1764 AsmReadApplicationRegisterEc (
    1765   VOID
    1766   );
    1767 
    1768 
    1769 
    1770 /**
    1771   Transfers control to a function starting with a new stack.
    1772 
    1773   Transfers control to the function specified by EntryPoint using the new stack
    1774   specified by NewStack and passing in the parameters specified by Context1 and
    1775   Context2. Context1 and Context2 are optional and may be NULL. The function
    1776   EntryPoint must never return.
    1777 
    1778   If EntryPoint is NULL, then ASSERT().
    1779   If NewStack is NULL, then ASSERT().
    1780 
    1781   @param  EntryPoint  A pointer to function to call with the new stack.
    1782   @param  Context1    A pointer to the context to pass into the EntryPoint
    1783                       function.
    1784   @param  Context2    A pointer to the context to pass into the EntryPoint
    1785                       function.
    1786   @param  NewStack    A pointer to the new stack to use for the EntryPoint
    1787                       function.
    1788   @param  NewBsp      A pointer to the new memory location for RSE backing
    1789                       store.
    1790 
    1791 **/
    1792 VOID
    1793 EFIAPI
    1794 AsmSwitchStackAndBackingStore (
    1795   IN      SWITCH_STACK_ENTRY_POINT  EntryPoint,
    1796   IN      VOID                      *Context1,  OPTIONAL
    1797   IN      VOID                      *Context2,  OPTIONAL
    1798   IN      VOID                      *NewStack,
    1799   IN      VOID                      *NewBsp
    1800   );
    1801 
    1802 /**
    1803   Internal worker function to invalidate a range of instruction cache lines
    1804   in the cache coherency domain of the calling CPU.
    1805 
    1806   Internal worker function to invalidate the instruction cache lines specified
    1807   by Address and Length. If Address is not aligned on a cache line boundary,
    1808   then entire instruction cache line containing Address is invalidated. If
    1809   Address + Length is not aligned on a cache line boundary, then the entire
    1810   instruction cache line containing Address + Length -1 is invalidated. This
    1811   function may choose to invalidate the entire instruction cache if that is more
    1812   efficient than invalidating the specified range. If Length is 0, the no instruction
    1813   cache lines are invalidated. Address is returned.
    1814   This function is only available on IPF.
    1815 
    1816   @param  Address The base address of the instruction cache lines to
    1817                   invalidate. If the CPU is in a physical addressing mode, then
    1818                   Address is a physical address. If the CPU is in a virtual
    1819                   addressing mode, then Address is a virtual address.
    1820 
    1821   @param  Length  The number of bytes to invalidate from the instruction cache.
    1822 
    1823   @return Address
    1824 
    1825 **/
    1826 VOID *
    1827 EFIAPI
    1828 InternalFlushCacheRange (
    1829   IN      VOID                      *Address,
    1830   IN      UINTN                     Length
    1831   );
    1832 
    1833865#else
    1834866
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette