Commit Graph

750 Commits

Author SHA1 Message Date
qwang12 c4a00638d8 Update function comments HiiLibListPackageLists
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5961 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-24 12:38:21 +00:00
vanjeff 28ca72bc97 Changing unsigned int into UINTN according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5960 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-24 08:31:38 +00:00
vanjeff 5385a57969 clean up baselib according to review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5958 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-24 05:30:40 +00:00
xli24 24dcb5e50a Update BaseLib according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5956 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-24 04:17:16 +00:00
klu2 7f1eba7b99 Cleanup "Tiano" word.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5942 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-22 05:22:41 +00:00
klu2 e20a8c69b1 Code clean up
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5941 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-22 02:48:13 +00:00
qwang12 f8d18bada5 HiiLibGetCurrentLanguage returns the current UEFI variable "PlatformLang" (if this variable does not exist, a default value is returned). This function is called by HiiDatabase itself. Now, HiiLibGetCurrentLanguage is in HiiLib. Because of this, we can't add location of Hii protoocol in the library constructor of HiiLib. This cause Hii Database driver never get loaded (circular dependency).
By moving HiiLibGetCurrentLanguage to UefiLib, library constructor (depex) can be added back to HiiLib to make sure the execution order is correct.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5938 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-21 08:50:52 +00:00
lgao4 2a5f2a5036 Update these library instances module type to UEFI_DIRVER, because they only depends on UEFI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5931 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-19 06:22:44 +00:00
lgao4 c481196831 Update Library description for BaseMemoryLibOptDxe and BaseMemoryLibOptPei.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5929 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-19 04:38:53 +00:00
lgao4 2bfb60098f 1. Change 0 == Length style to Length == 0
2. Clean BasePeCoff library instance, only keep one copy PeCoffLoaderEx.c file for IA32, X64 and IPF arch
3. Clean the confused comments

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5927 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-18 14:27:39 +00:00
vanjeff 1efcc4ae46 remove unnecessary comments introduced by tools from MdePkg. The regular express is "//^p//[ ]Include[ ]common[ ]header[ ]file[ ]for[ ]this[ ]module[.]^p//"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5911 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-17 07:46:17 +00:00
klu2 8335866b0b Correct module type for library UefiBootServicesTableLib and UefiRuntimeServicesTableLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5895 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-16 06:44:15 +00:00
eric_tian f944ec32e7 follow up code review
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5894 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-16 06:13:42 +00:00
eric_tian f73e0ad215 follow up code review
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5893 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-16 06:01:21 +00:00
eric_tian 55f298c3a3 follow up the comments from code review.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5892 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-16 05:22:09 +00:00
klu2 9edc73ada4 Code clean up.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5890 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-16 02:12:35 +00:00
vanjeff 835849540d remove '../' from Base Library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5878 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-11 09:12:14 +00:00
vanjeff 3ec9bc1557 move and rename it
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5877 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-11 09:08:12 +00:00
vanjeff 5dedabbb4e Clean up BaseIoLibIntrinsic according to review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5876 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-11 08:59:52 +00:00
eric_tian c57da111f7 cleanup some comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5864 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-09 07:11:51 +00:00
eric_tian 1106ffe1c0 Function description in baselib.h is not clear. change it to comply with Doxgen format.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5862 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-09 06:22:30 +00:00
vanjeff 2b1532df6d changed the format when use "=="
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5859 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-09 05:28:47 +00:00
klu2 4efb2b4d92 Fix the wrong fixing for hardcore value 7.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5857 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-09 05:19:30 +00:00
klu2 f008fc323b Code cleanup for library instances in MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5856 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-09 04:41:59 +00:00
qhuang8 a4c47ba324 Add missing gEfiFirmwareFileSystem2Guid in INF [Guids] section
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5849 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 23:25:14 +00:00
qwang12 23a2150bcf 1) Add CONST to the pointer type input parameter.
2) Use global variable and AllocateCopyPool to save the size of generated binary.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5847 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 12:53:50 +00:00
klu2 6cff95cd69 use UnicodeVSPrintAsciiFormat, UnicodeSPrintAsciiFormat to simplify code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5844 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 09:08:26 +00:00
klu2 7c6d32a564 use UnicodeVSPrintAsciiFormat, UnicodeSPrintAsciiFormat to simplify code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5843 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 09:08:04 +00:00
klu2 7c366ec9ca wrong comment for "Unicode" string.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5842 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 08:35:54 +00:00
klu2 2cb3369a49 remove unused library class.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5841 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 08:26:45 +00:00
klu2 802b8312a2 remove unused include file for library class.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5840 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 08:23:28 +00:00
lgao4 52cd71dca9 Update UefiScsiLib to add ASSERT comments and define new macros to replace the hard code value.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5838 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 05:56:40 +00:00
lgao4 11ceade4ba Add Usb Hid class request type into IndustryStandard/Usb.h, and replace the hard value in UefiUsbLib by them.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5834 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 04:59:00 +00:00
lgao4 cc4e048504 Correct the wrong '?' character to '-', and add check DestinationBuffer == SourceBuffer for CompareMem functions in all BaseMemory library instances.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5831 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-08 01:24:16 +00:00
jljusten fe7fd57806 edk2/MdePkg/Library/PeiIoLibCpuIo/IoLib.c:
* Align code with changes to CONST usage on function
  parameters made in edk2-r5818.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5825 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-04 18:12:57 +00:00
xli24 ad400b07b8 Update MDE Library instances according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5823 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-04 13:39:18 +00:00
vanjeff ed66e1bc0d clean up the un-suitable ';' location when declaring the functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5820 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-04 09:37:28 +00:00
vanjeff 9eb7382f73 1. remove EFI_EVENT_ alias, replace them with EVT_
2. remove definitions of EFI_DESCRIPTION_STRING and EFI_DESCRIPTION_STRING_BUNDLE.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5812 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-04 07:38:10 +00:00
klu2 f36a7bf58c Add more comment for library instance and remove unused internal header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5799 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 08:44:12 +00:00
klu2 bf295af27c Add more comment for library instance and remove unused internal header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5798 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 08:42:16 +00:00
klu2 ce02b0b901 Add more file comments
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5797 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 08:35:20 +00:00
klu2 d667c17cd4 Fix wrong comment for SetPeiServiceTable
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5795 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 08:23:38 +00:00
klu2 9971f94329 remove internal header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5794 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 08:05:39 +00:00
klu2 5dd39dc655 1, remove MigrateIdt interface, 2, remove unused library class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5793 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 08:04:48 +00:00
vanjeff 22e6fe86ba fixed one typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5792 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 07:56:47 +00:00
klu2 7292888e44 Add more file comments for PeiServiceTableLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5790 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 07:55:15 +00:00
vanjeff afa223265a clean the codes according to review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5789 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 07:54:27 +00:00
klu2 bb347ec275 Add more comments for DxeServicesTableLib library instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5788 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-03 07:50:48 +00:00
lgao4 60c93673b3 The driver and library in MdePkg, MdeModulePkg and Nt32Pkg that don't depend on PI spec should include Uefi.h not PiDxe.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5758 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-30 14:09:38 +00:00
qwang12 4386f14350 Fix a bug in the assert condition.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5754 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-29 05:35:16 +00:00
qhuang8 660b246ac5 Remove the supported module type of DXE_CORE to avoid that this library instanced by misused by DxeCore.
DxeCore should link the instance in MdeModulePkg for MemoryAllocationLib class.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5743 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-27 14:30:52 +00:00
klu2 4ca0802e08 Refine the code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5729 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-25 05:36:08 +00:00
lgao4 14bcde689e remove the unused msa files in MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5725 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-25 05:00:23 +00:00
lgao4 9e6fa6d245 Clean up DxeMemoryAllocationLib and PeiMemoryAllocationLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5722 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-24 05:00:30 +00:00
qwang12 8cf43dd722 1) Add in ASSERT conditions
2) Add GUID and Library Class in INF file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5712 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-22 13:44:57 +00:00
qwang12 ff197efbbc 1) Update comments for API in DxePiLib.h
2) Fix a bug that SectionInstance is not referenced in the function GetSectionFromFv
3) Some minor cleanup.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5711 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-22 09:09:24 +00:00
lgao4 6812ef9fea Update Hob Instance to remove the unused InternalHobLib.h file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5710 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-22 07:06:49 +00:00
jljusten 44f5e74f28 edk2/MdePkg/Library/BaseLib/BaseLib.inf:
edk2/MdePkg/Library/BaseLib/Ipf/AsmCpuMisc.s:
* Add GCC IPF implementation of CpuBreakpoint, MemoryFence,
  DisableInterrupts, EnableInterrupts, and EnableDisableInterrupts.
  (Thanks Vara!)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5701 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-20 22:19:25 +00:00
qhuang8 dd1245006f Remove allocate aligned pool services.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5696 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-20 09:39:43 +00:00
lgao4 e6bcee8713 Remove the duplicated comments for function header.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5695 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-20 09:19:54 +00:00
lgao4 a8ff971524 Cleanup Cpu library class and CpuLib instance and BaseLib instance; and add comments for the confused logic in IfrSupportLib instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5694 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-20 09:15:34 +00:00
lgao4 b911d09f55 Code Clean up for IfrSupportLib, HiiLib, PeiExtractGuidedSectionLib and DxeExtractGuidedSectionLib,
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5687 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 12:11:37 +00:00
qhuang8 25366245f5 Add Pcd Protocol in [Depex] section and add back the constructor since PCD protocol must have been available when the entrypoint is executed.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5680 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 09:24:07 +00:00
qhuang8 2ef5636ff3 Add Pcd Ppi dependency in [depex] section in PeiPcdLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5679 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 09:22:36 +00:00
qwang12 55a9663bde Add IfrLibCreatePopUp2 and HiiLibExportPackageLists.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5663 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 07:47:51 +00:00
klu2 d00afc4ef8 Add missing library class.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5662 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 07:38:14 +00:00
klu2 f2084bda3d Add CpuDeadLoop() for PeiCore entry, that means PeiCore should not return.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5661 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 07:32:34 +00:00
klu2 e310a27b5e Remove msa file and add more comments for DXE core entry
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5660 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 07:20:14 +00:00
klu2 0514e9c3c9 refine code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5658 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 05:48:39 +00:00
klu2 a3fdf4ac93 Remove unused module type.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5657 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 05:47:51 +00:00
klu2 a72bd1ec5f refine code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5656 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 05:43:42 +00:00
klu2 ef64f703e2 Refine the code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5654 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 05:11:21 +00:00
klu2 eba7c22246 Remove unused internal header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5653 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 04:27:07 +00:00
jljusten 6f5cf7595f edk2/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c:
* Remove trailing whitespace in file to fix warning/error from the
  Intel compiler: "last line of file ends without a newline"


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5638 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-13 21:02:24 +00:00
eric_tian 584125bcba code review's result.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5633 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-12 07:20:10 +00:00
qwang12 4a9cfab5a4 Remove the unncessary assignment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5632 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-12 06:21:35 +00:00
lgao4 a2ddd00bfe Add SerialPortPoll Api in SerialPortLib to Poll the serial device to see if there is any data waiting.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5624 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-10 05:39:21 +00:00
mdkinney 7fd58cbc7e Use ReadUnaligned32() instead of CopyMem()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5604 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-01 23:21:07 +00:00
jljusten 0e0c422d4c MdePkg/Library/BaseLib/X64/ReadCr2.S:
MdePkg/Library/BaseLib/X64/ReadMm0.S:
* Fix syntax error for X64 gcc assembly files.  (Missing parenthesis.)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5597 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-31 16:23:36 +00:00
eric_tian 6a28ac4441 Gcc cleanup
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5589 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-31 06:56:12 +00:00
eric_tian 12b2b6c416 Gcc cleanup for CpuLib in mdepkg/library/
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5588 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-31 06:51:00 +00:00
eric_tian 85c25283ed Gcc cleanup for baselib & basememorylib in mdepkg/library/
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5587 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-31 06:23:32 +00:00
yshang1 42eedea958 Code Scrub for MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5567 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-25 12:21:57 +00:00
eric_tian d0b494edf2 modify coding style to pass ecc tool
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5544 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-22 03:10:13 +00:00
qwang12 ccac388d13 Add in more comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5538 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-21 12:13:37 +00:00
qhuang8 555a6f4536 Remove INF/MSA file name to align with directory name
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5524 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-19 01:35:35 +00:00
qhuang8 0eeb6d1fb8 Remove directory DxeDebugLibSerialPort to BaseDebugLibSerialPort since this instance is EFI agnostic.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5523 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-19 01:32:53 +00:00
lgao4 19bee90c32 Correct ECC Error for MdePkg/Include/Protocol and Correct PeCofferLib bug to set ImageContext->EntryPoint after relocate when the destination address is specified.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5514 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-17 08:45:10 +00:00
xli24 4cb0344efe Refine code for BasePalCallLibNull & PeiPalCallLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5506 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-16 14:36:38 +00:00
klu2 63e4dba96a Fix function comment to follows doxygen format.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5497 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-16 09:29:20 +00:00
yshang1 373b5cf97c Code Scrub the common includes in MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5493 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-16 06:31:22 +00:00
qwang12 1db1f6adb4 Clean up IfrSupportLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5487 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-16 03:06:59 +00:00
qwang12 29870c8d61 Clean up HiiLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5481 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-16 01:22:51 +00:00
lgao4 eceb3a4cb9 Code scrub for the Debug library, PostCode library, Print library, and ExtractGuidedSection library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5478 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-15 11:12:43 +00:00
klu2 23a36779f8 Fix function comment to follows doxygen format.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5470 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-15 07:34:07 +00:00
lgao4 3afce7336e Roll back 1 == Var to Var == 1 for save size.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5466 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-15 04:26:14 +00:00
qhuang8 1654531a31 Add CONST modifier to align with the global array of mUnicodeWidthTable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5465 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-14 13:27:59 +00:00
yshang1 f80b0830db Code scrub:
MdePkg/Library/BaseCacheMaintenanceLib
MdePkg/Library/BaseDebugLibNull
MdePkg/Library/BaseIoLibIntrinsic
MdePkg/Library/BaseLib
MdePkg/Library/BasePeCoffLib
MdePkg/Library/CpuLib
MdePkg/Library/DxeMemoryLib
MdePkg/Library/DxePiLib
MdePkg/Library/PeiIoLib
MdePkg/Library/PeiMemoryLib
MdePkg/Library/UefiBootServicesTableLib
MdePkg/Library/UefiLib
MdePkg/Library/UefiRuntimeLib


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5464 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-14 09:01:34 +00:00
qwang12 ad1b36195a Clean up ExtendedHiiLib, HiiLib, IfrSupportLib, ExtendedIfrSupportLib for Doxygen comments requirement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5458 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-14 05:29:49 +00:00
eric_tian 7687d3a835 modify coding style to pass ecc tool and provide comments that complied with Doxgen.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5452 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-11 07:06:56 +00:00
vanjeff 4ad9b09e88 To meet actual filenames
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5434 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-09 07:30:33 +00:00
vanjeff 05346dbbb9 rename filename to PciCf8Lib.c. it will match its library name and avoid confusion with Pci Library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5433 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-09 07:27:04 +00:00
vanjeff c26a4ca15f rename filename to PciExpressLib.c. it will match its library name and avoid confusion with Pci Library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5432 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-09 07:25:28 +00:00
vanjeff 5c57f3eaea 1. Update files header.
2. Added missing libraries in inf files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5431 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-09 07:21:21 +00:00
eric_tian cbc1082c98 modify coding style to pass ecc tool and provide comments that complied with Doxgen.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5430 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-09 01:52:13 +00:00
yshang1 38bbd3d91c Code scrub:
MdePkg/Library/BaseCacheMaintenanceLib
MdePkg/Library/BaseDebugLibNull
MdePkg/Library/BaseIoLibIntrinsic
MdePkg/Library/BaseLib
MdePkg/Library/BaseMemoryLib
MdePkg/Library/BaseMemoryLibMmx
MdePkg/Library/BaseMemoryLibOptDxe
MdePkg/Library/BaseMemoryLibOptPei
MdePkg/Library/BaseMemoryLibRepStr
MdePkg/Library/BaseMemoryLibSse2
MdePkg/Library/BasePeCoffGetEntryPointLib


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5426 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-08 09:38:43 +00:00
vanjeff 94646ec0e3 Ecc clean.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5415 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-08 05:18:46 +00:00
qwang12 27d55a2d56 Boolean values and variable type BOOLEAN should not use explicit comparisons to TRUE or FALSE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5379 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-30 02:22:16 +00:00
qwang12 2a10d87453 Remove the OPTIONAL modifier as HiiHandle is a compulsory para.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5369 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-25 05:44:42 +00:00
qwang12 54cf87805f Merged in the following trackers from EDK:
EDK1145 Cursor mising in shell in some case 
EDK1099: Dell - [HII] HiiGetFontInfo() not retrieve the system font by FoFontInfoMask
EDK1127: [UEFI 2.10] Keyboard layout support 
EDK1129: [UEFI HII] GUID is represented wrongly in Config String
And some other fixes such as
*[UEFI HII] HiiGetAltCfg is generating "Name=" sub string in the wrong format 
*UEFI HII: GetUnicodeStringTextOrSize() doesn't handle NULL StringDest properly
*GetFontInfo() need be updated to avoid iteration 
*HIIStringProtocolTest failed on multiple platform
*[Uefi 2.1] Comply with latest Hii ECR 
* GetFontInfo() need be updated to avoid iteration


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5360 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-23 09:38:38 +00:00
qhuang8 5f3fdf9832 Minor update to follow coding style.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5321 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-04 04:33:35 +00:00
qhuang8 e8a99c0881 Remove orphan files: R8Lib.c & R8Lib.h have already been removed from module INF file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5320 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-04 04:16:14 +00:00
qhuang8 d2e6d78887 1. Add comments about reserve space on space according to x64 calling convention
2. Fix comments in SwitchStack as for the x64 calling convention.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5315 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-30 02:03:15 +00:00
qhuang8 ac64461468 De-unicode in comment for all source files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5302 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-27 03:24:01 +00:00
qwang12 d9e5c1fffb 1) Add BufToHexString, HexStringToBuf and IsHexDigit to BaseLib.
2) Remove the duplicated functions implementation  from the modules that reference these APIs 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5282 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-23 05:25:44 +00:00
qwang12 2d81bfb983 Add in ConvertIso639LanguageToRfc3066Language API.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5268 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-22 00:59:42 +00:00
klu2 ccb3cad09f Wrong check-in, library instance should not support DXE_RUNTIME_DRIVER, for DUET's runtime driver, DuetPkg should provide self's TimerLib for Duet's fake runtime driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5161 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-05 06:59:01 +00:00
klu2 af3977b1de Add DXE_RUNTIME_DRIVER type support SecPeiDxeTimeLibCpu driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5160 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-05 06:54:05 +00:00
klu2 2a254b9046 Fix typo in comment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5108 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-22 05:16:14 +00:00
klu2 d16fc3dbb3 Add missing file in INF file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5078 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-17 07:32:48 +00:00
qwang12 c344685c0c add in a new API HiiLibGetSupportedSecondaryLanguages
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5063 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-14 06:29:03 +00:00
yshang1 c311f86b23 [Description]
Scrub MdePkg:
  - Add file description with doxygen format.
  - Add calling convention of library class in MdePkg.
  - Add function descriptions of public protocol/library class.

[Impaction]
  It should be backward-compatible.

[Ref Info]
  N/A
 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4985 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-03 04:56:34 +00:00
qwang12 c67896b19f [Description]:
1) Remove HiiLibAddFontPackageToHiiDatabase as it is not properly defined API. It only cover Simplified Font. User is recomended to use Hii Font Protocol API to add various font into HII database.

[Impaction]:
All modules that may reference HiiLibAddFontPackageToHiiDatabase function.
[Reference Info]:
No.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4855 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-15 05:03:33 +00:00
qhuang8 9e77c2c3b7 Replace "addr16" with other instructions.
Thunk16.S was merely "translated" from Thunk16.asm to ensure of the binary equivalence.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4812 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-10 05:57:03 +00:00
qhuang8 a05f22fa36 Short term fix to pass some GCC warning.
(It should be able to remove R8Lib.c & R8Lib.h with APIs in BaseLib & PrintLib.)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4810 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-10 05:47:27 +00:00
qhuang8 9521b669f8 Fix a typo to pass ICC build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4789 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-04 11:29:23 +00:00
klu2 58dcdada56 Merge Temporary Ram support patch.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4782 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-29 18:24:43 +00:00
lgao4 306431f76a Fix build failure by adding DebugLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4752 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-25 14:22:11 +00:00
lgao4 8069d49e9a update comments and add assert for these files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4750 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-25 07:01:44 +00:00
vanjeff 06bab62254 changed to match filename
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4741 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-21 06:22:14 +00:00
vanjeff 753cb9dcbb remove duplicated one.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4738 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-20 08:34:21 +00:00
vanjeff ce821dff82 rename
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4737 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-20 08:33:51 +00:00
jljusten 168f423376 MdePkg/Library/IfrSupportLib/UefiIfrForm.c:
Removed (put inside #if 0) unreferenced STATIC function
  (GetPackageDataFromPackageList)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4682 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-11 19:55:23 +00:00
qwang12 e52c5a9fdc 1) Cleanup HiiLib, IfrSupportLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4661 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-02 13:11:49 +00:00
qhuang8 634aa59d20 Fix a bug in LookupUnicodeStringTable2() to mismatch invalid language code like "enus" with "en"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4655 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-01 15:06:59 +00:00
qhuang8 41c7f55141 Remove the DivU64x64Remainder.c (embedded asm version)for IA32 architecture. It cannot handle the case when divisor is less than 4G.
Make MSFT tool chain uses the ASM version, which can handle the case in an size efficient way. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4654 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-01 15:05:08 +00:00
qhuang8 4df26661c7 1. Add conformance checking to ensure the input & output string are well-defined.
2. Adjust the return value of UnicodeStrToAsciiStr() & AsciiStrToUnicodeStr () to be the original destination string to follow MdeLib spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4653 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-01 15:02:05 +00:00
qhuang8 8fd567c6f1 Add alignment checking for IoLib functions to conform to MdeLib spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4652 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-01 14:57:29 +00:00
qhuang8 1e3ee53678 Fix the asserting error for SetJump().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4650 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-01 14:54:52 +00:00
qhuang8 f9cea76b15 Fix the issues about the loop count for checksum 16,32,64. The input parameters are the buffer size according to Mde Lib spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4649 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-01 14:53:33 +00:00
qhuang8 6577541d25 Zero all the field so that caller does not need to be concerned about the reserved field.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4636 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-25 03:17:56 +00:00
qhuang8 0c0e0a041d Fix a bug in print library "%a" should not print anything if the var argument points to a null string.
The default precision for string should be set to 0 according to MdeLib spec. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4634 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-25 03:10:15 +00:00
xli24 57069be8fb Update Thunk16.S of X64 for BaseLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4620 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 02:59:28 +00:00
qhuang8 3549724b39 Add DXE_CORE to supported module type. This library instance is able to support DxeCore for non-dynamic PCDs.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4618 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 02:27:08 +00:00
xli24 de0419128f Check in implementation in GNU assembly for Thunk16.S in BaseLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4614 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-22 08:54:44 +00:00
qhuang8 e19c2c4a5f Suppress the divide-by-zero warning for package validation of MdeModulePkg. The APIs in this library should not be invoked by real platforms.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4608 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-22 07:12:05 +00:00
qwang12 7d582d6b49 UEFI HII: Merge UEFI HII support changes from branch.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4600 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-21 14:41:31 +00:00
jwang36 0ca3bcbc90 Added necessary support module type
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4593 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-21 09:32:58 +00:00
xli24 ab9a4f1638 Fix bugs in GNU assembly files for writing CR and DR registers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4590 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-21 03:34:55 +00:00
yshang1 af2bb549ad Update the PciXXXReadBuffer() for better coding style.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4449 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-29 06:11:52 +00:00
yshang1 0c62737d38 Since PciXXXReadBuffer/PciXXXWriteBuffer does not check the alignment of user buffer, if the alignment of user buffer is different than the PCI Address on IPF, the library would generate the Alignment Fault.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4447 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-29 02:26:26 +00:00
yshang1 73e88b4a24 Fix typo of Library Class Declaration.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4431 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-25 03:50:25 +00:00
lgao4 e111752c18 Fix one bug in PeiExtractGuidedSectionLib to convert the address after hob start address is changed.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4398 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-18 06:15:55 +00:00
qhuang8 a3ac242bb7 Update PcdLib instances:
1. Remove the [depex] section for both PeiPcdLib and DxePcdLib
2. Remove the constructor of DxePcdLib. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4383 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-11 02:08:17 +00:00
qhuang8 f2e0239a6d Fix the constructor typo. The new type should follow PI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4363 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-05 07:45:54 +00:00
qhuang8 cf1529137e Fix the constructor typo. The new type should follow PI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4358 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-05 06:38:03 +00:00
mdkinney a82da388bf Fix timeout logic in AcquireSpinLock(). It could fail if the end time computed was larger than the roll over value of the performance counter. The timeout logic now accumulates the total time elapsed to determine if the timeout has been exceeded.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4345 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-30 02:33:37 +00:00
mdkinney 24a7505cef Add FUNCTION_ENTRY_POINT macro
Update DxeDebugLibSerialPort to have a module type of BASE



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4328 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-27 02:48:59 +00:00
qhuang8 8a7d75b062 Clean up: update "EFI" to "UEFI" if applicable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4317 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-22 06:00:39 +00:00
qwang12 67c89a2127 Fix up the comment for several functions and make sure the IN and OUT modifier of the function parameter is correct.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4301 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-18 16:01:09 +00:00
qhuang8 dda0251d0b Fix the wrong memory type for BSP stack hob. EfiConventionalMemoryType will be reclaimed by DxeCore.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4287 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-08 03:48:49 +00:00
yshang1 5053cf7f4c 1) Fix bugs in BaseMemoryLibOptXXX instances in MdePkg.
2) Add BaseMemoryLibOptXXX in MdePkg.dsc.
3) Clean up the MdeModulePkg.dsc.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4286 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-08 03:40:50 +00:00
jljusten a3589760c4 edk2/MdePkg/MdePkg/Library/UefiScsiLib/UefiScsiLib.c:
edk2/MdePkg/MdePkg/Library/DxeSmbusLib/InternalSmbusLib.h:
  Fixed include filenames (case) for case-sensitive filesystems.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4264 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-02 00:00:44 +00:00
jljusten a21f46e4b6 MdePkg/Library/BaseLib/ChkStkGcc.c:
MdePkg/Library/BaseLib/BaseLib.inf:
  Added stub (nil) implementation of __chkstk for which calls are generated
  by newer versions of gcc.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4237 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-30 00:10:23 +00:00
jljusten bdfb126146 MdePkg/Library/BaseMemoryLibRepStr/x64/*.S:
Added assembly files for gnu toolchain.
  Uses '.intel_syntax' which requires binutils >= 2.10.
MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf:
  Include .S files for BaseMemoryLibRepStr module.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4236 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-30 00:06:27 +00:00
lgao4 9626a87e43 Add one judge whether TeImage or PeImage has reloc section when relocate TeImage or PeImage into memory.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4224 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-26 09:28:29 +00:00
lgao4 e2701217a1 Update ExtractGuidedSectionLib instance to cover the same handler is registered multi times, the later will override the pre setting.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4183 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-19 09:11:42 +00:00
lgao4 e6c560aad6 Make GuidedSection library instance to follow the value of GuidedSectionExtraction protocol/PPI defined in PI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4165 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-18 09:12:59 +00:00
klu2 0a7d0741b6 The BaseAddress and Length should be align PAGE according to PI specification for EFI_MEMORY_ALLOCATION_HOB
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4162 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-18 06:09:03 +00:00
qwang12 bff2467aff add in include for header file to get value for MACRO THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4128 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-16 07:10:15 +00:00
klu2 f9168a6f8f Remove library instance of PeiServicesTablePointerLibMm7
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4113 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-15 02:54:21 +00:00
lgao4 2ad4dad029 1. Update internal EfiPrint protocol to contain all print interfaces provided by PrintLib class of MdePkg. 2. Update SetupBrowserDxe driver to produce new EfiPrint protocol.
3. Update EdkDxePrintLib instance to implement all interfaces defined in PrintLib class based on new EfiPrint protocol.
4. Update Nt32Pkg platform.dsc to use EdkDxePrintLib instance for UEFI_APPLICATION modules.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4109 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-12 08:13:33 +00:00
lgao4 a88c89156f Fix ICC build error
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4108 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-12 07:08:43 +00:00
zliu3 ab3b2e8903 Updating for pass building: Remove the "#include <ItaniumFamilyCpuPeim.h>" for this PalCallLib.c because it is moved from ItaniumFamilyCpuPkg to MdePkg
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4103 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-12 02:30:20 +00:00
vprabhal ed8717c58f moved the PeiPalCallLib from ItaniumFamilyCpuPkg to MdePkg
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4102 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-11 23:51:46 +00:00
vprabhal d331a1e391 these files have moved to cpulib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4098 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-11 16:26:17 +00:00
yshang1 4199d92d1c Add BasePalCallLibNull instance in MdePkg. It is useful when building IPF components in open source packages.
Use  meaningful arguments defined in PalLib.h when invoking  PalCall(). 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4094 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-11 11:12:28 +00:00
lgao4 66c0685953 Remove PeiDxeExtractGuidedSectionLib instance, which is replaced by PeiExtractGuidedSectionLib and DxeExtractGuidedSectionLib instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4088 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-11 07:19:09 +00:00
jwang36 15d10a4c78 Changed to pass the build with Visual Studio 2005
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4074 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-10 07:03:04 +00:00
qwang12 166152e85c 0) Change the PEI core behavior to not install FV HOB for each FV INFO PPI installed. This allows more freedom to platform developer to choose to expose which FV to PEI core or DXE core.
1) Split MdePkg/Include/Library/PiLib.h to DxePiLib.h and PeiPiLib.h. These two library classes are for DXE phase and PEI phase.
2) Update the API names in DxePiLib and PeiPiLib to be longer ones to be more meaningfull and to avoid name collisions. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4067 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-10 02:08:22 +00:00
klu2 dc4d9c37c4 Remove assemble file for different arch,
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4065 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-10 02:04:53 +00:00
jlin16 61296d0d5e Add SetPeiServicesTablePointer() interface implement in PeiServicesTablePointerLibKr7
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4060 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-09 08:40:11 +00:00
klu2 81c7803cf4 PI Enabling: the address of PeiServices Pointer should be
1) Set to preceding of IDT table in PeiCore's entry
2) Migrate to preceding of new memory IDT table when memory is discovery

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4059 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-09 08:16:53 +00:00
lgao4 d173d9c761 Correct ExtractGuidedSectionLib library instance for PEIM and DXE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4058 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-09 07:54:34 +00:00
zliu3 fa46e6aa3c Added the "#include <Library/PalCallLib.h>" to pass build (the tracker is #592)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4043 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-08 08:46:39 +00:00
mdkinney 631f060bb7 Add BaseMemoryLib optimized for DXE
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4036 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06 23:23:49 +00:00
mdkinney 7b3b4b2992 Add BaseMemoryLib optimized for PEI
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4035 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06 23:23:13 +00:00
mdkinney 18be21dc5e Make header consistent with other files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4034 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06 22:00:36 +00:00
mdkinney 9b7c438b98 Restore original algorithm and add comments
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4033 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06 21:59:01 +00:00
mdkinney b3ad302e0f Return buffer in rax
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4032 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06 21:53:01 +00:00
mdkinney a326286cb1 Sync with other libs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4031 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-06 21:52:22 +00:00
vprabhal 3e0ada4914 moved CpuSleep and CpuFlushTlb to the CpuLib to use PalCall in those functions, it is creating circular dependency if those functions are in BaseLib and the PalCallStatic is replaced with PalCall
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4023 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-05 18:51:24 +00:00
vprabhal d56c53cbb9 removed the use of PalCallStatic and changed to PalCall
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4022 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-05 18:48:48 +00:00
vprabhal 71c827cafe removed the use of PalCallStatic and changed to PalCall
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4021 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-05 18:47:51 +00:00
vprabhal e0337bfab8 created a CpuLib for CpuSleep and CpuFlushTlb from BaseLib to remove circular dependency on PalCallLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4020 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-05 18:47:03 +00:00
lgao4 0fa0015900 Add two ExtractGuidedSectionLib instance separately for Pei and Dxe module. Because Pei module may run in flash, they don't support to write global variable. We have to use GuidHob to store these global variables.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4009 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-30 09:01:06 +00:00
qhuang8 ac94ab631f Work around fix to bypass to register GUID on S3 resume.
DxeIpl does not shadow itself on S3 resume.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3995 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-30 01:59:02 +00:00
lgao4 8910007ad2 Remove CustomDecompressLib, which has replaced by ExtractGuidedSection library class.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3983 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-29 08:53:36 +00:00
lgao4 18fd8d651d 1. Add ExtractGuidedSectionLib library to replace customdecompress library.
2. Add PeiDxeExtractGuidedSectionLib library instance and one PCD PcdMaximumGuidedExtractHandler in MdePkg.
3. Update DxeIpl and DxeMain to consume new library.
4. Update BaseUefiTianoCustomDecompressLib to register TianoDecomress extractguidedsection handler.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3980 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-29 08:04:29 +00:00
lgao4 3d7b0992fc 1. Replace PeCoffLoader library by PeCoff lib for PeiCore, DxeIpl and DxeMain.
2. Add three PeCoff library instances for NT32 PeImage load.
3. Update PeCoffGetEntryPointLib to support TeImage.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3965 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-28 08:14:30 +00:00