Commit Graph

413 Commits

Author SHA1 Message Date
rsun3 d4d58cbe9f DuetPkg DuetPkgIa32.dsc & DuetPkgX64.dsc: Add library class and instance mapping for UefiCpuLib after UefiCpuPkg\CpuDxe consumes UefiCpuLib.
Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13517 6f19259b-4bc3-4df7-8a09-765794883524
2012-07-10 04:57:44 +00:00
erictian 86702b3fa9 DuetPkg/SataController: Fix possible memory leak at error handling of SataController driver
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jie Lin <jie.lin@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13482 6f19259b-4bc3-4df7-8a09-765794883524
2012-07-03 03:24:47 +00:00
geekboy15a c5ae1de611 DuetPkg: Enabled build with new version of CpuDxe driver.
Added a definition to the LocalApicLib in the project files to allow Duet to build with the updated version of the CpuDxe driver.

Tracker: 207345

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13337 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-18 20:22:36 +00:00
hhtian bff8c6f61d Update copyright format
Signed-off-by: Hot Tian <hot.tian@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13213 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-24 06:49:39 +00:00
rsun3 7e242786b7 MdeModulePkg PciBusDxe and DuetPkg PciBusNoEnumerationDxe: Update ResetPowerManagementFeature() to clear 4 related R/W bits in the PMCSR register, leaving other bits preserved.
Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13189 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-12 01:49:27 +00:00
jljusten ea4ee7ac38 EDK II Packages: Add Contributions.txt and License.txt files
Contributions.txt documents the contribution process for all
tianocore projects. The conents of Contributions.txt should
match in all cases.

License.txt is a per-project document showing the license terms
used by that project.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13187 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-11 23:19:46 +00:00
vanjeff 2a95fdb814 Updated platform DSC files to add CPU Exception Library instances.
Signed-off-by: vanjeff


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13106 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-16 08:36:39 +00:00
rsun3 94020bb40f Improve robustness when scanning PCI Option ROM.
Signed-off-by: rsun3
Reviewed-by: geekboy15a


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13095 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-14 03:17:17 +00:00
rsun3 e9a9efb8e5 DuetPkg BootSector: fix a bug in st32_64.S that the size for GDTR.limit is wrong.
Signed-off-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12934 6f19259b-4bc3-4df7-8a09-765794883524
2012-01-18 03:28:42 +00:00
rsun3 e7c4ef5ed4 DuetPkg BootSector: fix bugs in .S files so that 32-bit and 64-bit DUET can boot to Shell with boot sector binaries built by GCC.
There is also a bug in bs32.asm/bs32.S that the space between the code and the 0xAA55 ending signature is not enough to hold the 2 debug strings. It is fixed by shortening the strings.

Signed-off-by: rsun3
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12930 6f19259b-4bc3-4df7-8a09-765794883524
2012-01-13 06:29:44 +00:00
rsun3 69b1c0214f DuetPkg BootSector: Clean up .S files for 64-bit Duet for GCC build.
Partly contributed by Sergey Isakov [isakov-sl@bk.ru].

Signed-off-by: rsun3
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12921 6f19259b-4bc3-4df7-8a09-765794883524
2012-01-10 04:30:33 +00:00
niruiyu 0c949badfd Update the Package version.
Signed-off-by: niruiyu
Reviewed-by: hhtian

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12838 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-13 08:31:55 +00:00
rsun3 697ecfd313 DuetPkg BootSector: Add missing .code16 directive into start16.S/start32.S/Gpt.S/Mbr.S.
Signed-off-by: rsun3
Reviewed-by: niruiyu

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12773 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-24 02:07:25 +00:00
lzeng14 979a00fab9 According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of 0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record.
Signed-off-by: lzeng14
Reviewed-by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12748 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21 08:52:27 +00:00
rsun3 3a4b9eba07 DuetPkg BootSector:
Update start.asm(S)/start16.asm(S)/start32.asm(S)/efi32.asm(S) under DuetPkg\BootSector to follow the IA32 recommendations on switching to protected mode: Immediately following the MOV CR0 instruction, execute a far JMP or far CALL instruction. (This operation is typically a far jump or call to the next instruction in the instruction stream.)

Signed-off-by: rsun3
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12723 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-16 09:38:12 +00:00
erictian 80d6c273d4 According to PI errata 0000690, word "Ide Bus driver" has been replaced with "Driver entity".
Signed-off-by: erictian
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12703 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-15 09:42:16 +00:00
niruiyu 25d7031fea Avoid using code name in comments.
Signed-off-by: niruiyu
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12550 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-19 05:37:15 +00:00
lgao4 db4d3fa114 Clean up the private GUID definition in module Level.
Signed-off-by: lgao4
Reviewed-by: rni2


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12385 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-20 02:12:45 +00:00
li-elvin 38e47f79c4 Fix DUET X64 build error.
Signed-off-by: li-elvin
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12277 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-05 09:46:55 +00:00
lgao4 df1b7575ba Fix the incorrect usage for PCD PcdResetOnMemoryTypeInformationChange in Duet, Unix and Emulator platform.
Signed-off-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12218 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-29 13:36:03 +00:00
xdu2 b9610b9cb5 Add new API GetTimeInNanoSecond() to TimerLib to convert elapsed ticks to time in unit of nanoseconds.
Signed-off-by: xdu2
Reviewed-by: mdkinney

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12206 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-25 05:59:17 +00:00
lzeng14 271c79012d Fix ICC build error.
Signed-off-by: lzeng14

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11942 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-01 04:59:47 +00:00
niruiyu 7708d08195 Fix CreateBootDisk.bat not using config variables
Signed-off-by: Pete Batard
Reviewed-by: niruiyu

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11941 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-01 04:48:45 +00:00
lzeng14 976f617719 Fix ICC build error.
Signed-off-by: lzeng14

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11940 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-01 03:56:19 +00:00
lzeng14 61a02ac974 Fix ICC build error.
Signed-off-by: lzeng14

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11939 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-01 03:47:26 +00:00
niruiyu 8de06925cc add (UINT8 *) type cast to fix ICC build failure.
Signed-off-by: niruiyu

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11926 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-29 07:15:58 +00:00
niruiyu fd99d1a91d Fix UnixGcc build failures.
Signed-off-by: niruiyu

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11891 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-27 06:03:06 +00:00
niruiyu b68b78e66c Change DUET DxeIpl to use SerialPort instead of manipulating serial port directly.
Signed-off-by: niruiyu
Reviewed-by: jyao1

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11876 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-23 08:31:18 +00:00
erictian 452f020794 Solve a wrong pointer reference in QueryVariableInfo().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11594 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-27 05:49:26 +00:00
lgao4 a70dbff785 Remove the local LegacyBiosMpTable.h. It has been defined in MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11408 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-17 06:30:50 +00:00
mdkinney f4845fc1c1 Update DebugLib to provide support for "err" command in the EFI Shell to adjust the filter mask for DEBUG() messages. The "err" command provide the ability to adjust this filter mask at a global level through an EFI Variable and at the module level through a the Debug Mask Protocol. In order to support the degree of flexibility, the DebugLib needs to use library to abstract the get/set operations to the filter mask.
1) Add default mappings for the DebugPrintErrorLevelLib to the DSC file for this package.






git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11369 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-10 22:32:32 +00:00
lzeng14 27f3015903 Add AHCI support for DUET.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11353 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-08 05:42:37 +00:00
jljusten 8df0bd287c DuetPkg: Update create boot disk script to not modify bootsect.com
Previously the script would modify DuetPkg/BootSector/bin/bootsect.com.
Now a temporary file is used in place of bootsect.com.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11122 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-06 06:06:54 +00:00
jljusten 7709cf48e4 DuetPkg, OvmfPkg, UnixPkg: Remove unnecessary reset during boot
PcdResetOnMemoryTypeInformationChange is required to
be set to TRUE for ACPI S4 support.

These platforms do not support ACPI S4.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11120 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-06 06:05:41 +00:00
jljusten e1adae6084 DuetPkg, MdeModulePkg: Fix variable services hang with GCC44 X64
The C ellipses parameters are passed to functions differently
by default with GCC 4.4.  To make sure they are properly sent to
VariableGetBestLanguage, we add 'EFIAPI' to this function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11119 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-06 06:04:38 +00:00
niruiyu 462979afc2 Fix a bug in GetLangFromSupportedLangCodes()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11092 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-25 07:16:31 +00:00
niruiyu d7f791184b Fix AutoUpdateLangVariable() logic to handle the case PlatformLang/Lang is set before PlatformLangCodes/LangCodes.
Pre-allocate pool for runtime phase.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11088 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-24 03:23:30 +00:00
jljusten b8781a7771 DuetPkg: Use UefiCpuPkg/CpuDxe instead of DuetPkg/CpuDxe
UefiCpuPkg/CpuDxe provides all the critical features
needed for DUET.  Therefore, to reduce code duplication,
DUET can use the generic UEFI CPU DXE driver.

The one notable lost feature is that DUET's CPU DXE would
call legacy video INT 10 to make sure the exception information
could be displayed on the screen.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10974 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-22 01:08:16 +00:00
jljusten 0587c9825c DuetPkg: Add DXE APRIORI for 8259 driver
DUET's CpuDxe driver is directly dependent on the 8259.  This
forces the 8259 driver to run before the CPU DXE driver.  This
is required so the 8259 driver will initialize and mask all
8259 interrupts before the CPU DXE driver allows interrupts
to be enabled.

The UefiCpuPkg CPU DXE driver is not dependent on the 8259
directly.  Therefore, in order to use the UefiCpuPkg CPU DXE
driver with DUET, we add the APRIORI file to force the 8259
driver to run early before the CPU DXE driver runs.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10973 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-22 01:07:58 +00:00
niruiyu b4f9bc4dc2 Add static type cast to fix ICC build failure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10963 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-20 09:38:35 +00:00
jljusten 01b024f16b DuetPkg DxeIpl: Send result of PrintValue to serial port
PrintValue now uses PrintString so its result will be sent to
the serial port in addition to the screen.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10951 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:51:32 +00:00
jljusten dcb428da9e DuetPkg: Move EfiLdr Handoff data to stack
The EfiLdr image may be overwritten later in the boot process.
This can lead to the Handoff structure being corrupted before
DxeIpl is finished with it.

To help prevent this, we move the Handoff structure to the
stack, and in DxeIpl make a copy of it.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10950 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:51:21 +00:00
jljusten 6fc74eaa63 DuetPkg: Send EfiLdr messages to serial port
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10949 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:51:09 +00:00
jljusten 65e9e35245 DuetPkg: Add build32.sh and build64.sh
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10948 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:50:55 +00:00
jljusten 5c1138b0f0 DuetPkg CreateBootDisk.sh: Enable building a DUET floppy image
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10947 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:50:43 +00:00
jljusten 9046a2f9d3 DuetPkg PostBuild.sh: Use EDK_TOOLS_PATH if defined
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10946 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:50:33 +00:00
jljusten 0492698ac6 DuetPkg: Fix EFIAPI usage inconsistencies
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10945 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-16 18:50:16 +00:00
jljusten 815119f3d9 DuetPkg, MdeModulePkg: Fix several enum comparions
These comparisons were not comparing an enum variable
with a member of the same enum type.

GCC 4.5 generated a warning for these comparison
operations.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10932 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:08:29 +00:00
klu2 63c89e0468 remove --image-base option EfiLdr.inf, and use GenFw to do image base relocation
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10571 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-10 08:54:18 +00:00
klu2 7830363c37 fix GCC X64 build broken
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10568 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-05 11:06:17 +00:00