Commit Graph

10434 Commits

Author SHA1 Message Date
ydong10 fbe12b79ae Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10955 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-18 11:33:26 +00:00
lgao4 6517edbe51 Update UefiDriverEntryPoint library by adding BaseLib library class required by AutoGen code.
Update UefiApplicationEntryPoint library by adding BaseLib and DebugLib library class required by AutoGen code.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10954 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-18 09:59:55 +00:00
erictian 8304070106 set the interface of usb hid device to boot protocol if it's not in such case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10953 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-18 07:54:33 +00:00
qhuang8 f88ac6f635 Update EdkShellBinPkg to integrate a bug fix in Shell r45
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10952 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-18 03:58:12 +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
andrewfish 5f267e4d75 Update to support Xcode 64-bit debug.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10944 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-15 17:37:00 +00:00
andrewfish abd0c26488 Fix minor gcc build break.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10943 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-15 17:04:09 +00:00
ydong10 41e9426b3f Refile code to make code following the UEFI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10942 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-15 06:50:55 +00:00
qianouyang 705f53a9b4 Update IPsec.h file to follow approved ECR which will be collected into future UEFI 2.3 Specification after 2.3 errata B and future UEFI Specifications after 2.3. The changes mainly include:
1. Add EFI_IPSEC2_PROTOCOL
  2. Remove IPsec Authentication Algorithm Definition and IPsec Encryption Algorithm    
     Definition.
  3. Add EFI_IPSEC_SA_DATA2 data structure.
And also update IPv4 driver to call EFI_IPSEC2_PROTOCOL.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10941 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-15 05:40:41 +00:00
lgao4 a725268048 Sync EDKII BaseTools to BaseTools project r2068.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10937 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-14 06:30:37 +00:00
niruiyu 5b7183efb1 Update ConPlatform driver to support GOP driver which creates multiple children.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10936 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-14 04:49:31 +00:00
erictian 5dec0c688e fix 32bit build warning
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10935 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-14 01:33:04 +00:00
jljusten 75f18f3435 UnixPkg: Allow build.sh/build64.sh to be run from the edk2 root
You can now use this sequence to build UnixPkg:
$ cd /path/to/edk2
$ UnixPkg/build.sh
   or
$ UnixPkg/build64.sh

The old method is still valid:
$ cd /path/to/edk2/UnixPkg
$ ./build.sh

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10934 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 23:02:14 +00:00
jljusten a069372ced UnixPkg MiscSubClassPlatformDxe: Add en-US langdef to *.uni
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10933 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 23:02:02 +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
jljusten 818ff8c267 MdePkg: Use builtin offsetof function for GCC 4.0 and newer
GCC 4.0 and newer have a builtin function for implementing
'offsetof' therefore we make use of it for our OFFSET_OF
macro.

References:
http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Offsetof.html
http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Offsetof.html

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10931 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:08:06 +00:00
jljusten 2b0fcbf537 EdkCompatibilityPkg: Re-add VA_COPY macro
This macro was lost in r10585.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10930 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:07:54 +00:00
jljusten 152d9a6b07 OVMF: Only enable MDEPKG_NDEBUG for RELEASE builds
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10929 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:07:42 +00:00
jljusten 55cdb67acb OVMF: Support greater than 2GB of memory
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10928 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:07:29 +00:00
jljusten 3d131d1a20 OVMF BDS: Don't call BdsLibSaveMemoryTypeInformation
This call can cause a reset, and is most critical for ACPI S3/S4
resume situations.  OVMF does not support S3/S4.

OVMF does not have true non-volatile variable support, so
this call could cause a continuous reset situation in certain
scenarios.  (The BdsLibSaveMemoryTypeInformation may set an
non-volatile variable, and then reset with the assumption that
the variable will still exist during the next boot.)

Additionally, some version of QEMU appear to hang when the
port 64 reset is initiated.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10927 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:07:16 +00:00
jljusten a761d49719 UnixPkg build64.sh: Build UnixPkg X64 with GCC44
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10926 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:07:03 +00:00
jljusten cb5e6cd051 UnixPkg SEC: Fix link flags for using GCC on Linux x86-64
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10925 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:06:53 +00:00
jljusten 3ff2e32407 UnixPkg: Enable gasket functions for all X64 toolchains
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10924 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:06:42 +00:00
jljusten 124f761f02 UnixPkg: Added missing EFIAPI for many Gasket functions
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10923 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:06:28 +00:00
andrewfish a780c9424b Fix bad NT 32 reference in print to be UnixPkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10920 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-12 22:04:07 +00:00
andrewfish d8904c4a94 Make the script pass arguments so clean from Xcode works properly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10919 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-12 15:47:11 +00:00
rsun3 2b8999e131 Add Framework SMM Status Code Protocol on PI SMM Status Code Protocol Thunk driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10918 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-12 04:01:18 +00:00
erictian 80d3831f6b add ataatapipassthru driver to dsc file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10917 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-12 02:28:34 +00:00
rsun3 e026f005e3 Correct the bad token number for gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10916 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-11 09:10:26 +00:00
lgao4 08dd311f5d Sync EDKII BaseTools to BaseTools project r2065.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10915 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-11 06:26:52 +00:00
niruiyu d69bf66dc1 Fix the corner case when there is only "\0\0" appended and the Index is 1. Return missing string instead of empty string.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10914 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-11 04:37:28 +00:00
ydong10 f515069c19 Fixed update file time error problem.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10913 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-09 02:46:37 +00:00
andrewfish e0919a5856 Add ARM MOVW/MOVT relocations added in PE/COFF 8.2 spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10912 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-05 23:36:37 +00:00
jcarsey 6fd0a8c9ac remove link to old inf
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10911 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-05 15:27:28 +00:00
jcarsey 3e082d5826 Verify more memory allocations.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10910 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:44:57 +00:00
jcarsey 9ea69f8a05 Verify memory allocations were successful.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10909 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:30:40 +00:00
jcarsey d38a107995 change the en-dash to the standard dash character.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10908 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:29:30 +00:00
jcarsey e53bf79de7 verify that a memory allocation was successful.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10907 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:28:35 +00:00
jcarsey 0ab85bef03 move DeleteScriptFileStruct from a private to a public function. This allows for better memory cleanup when errors occur.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10906 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:26:29 +00:00
jcarsey 40d7a9cfaa fix a misspelling.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10905 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:25:24 +00:00
jcarsey 3c865f2064 1) Removing ASSERTs for proper return values.
2) Verifying that memory allocations were successful.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10904 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-04 16:24:30 +00:00
erictian aca84419c4 remove additional space from comments and pass ICC/GCC44 build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10903 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-30 08:44:59 +00:00
jljusten 16d5d16832 PerformancePkg: Fix build with GCC
Fix compiler warnings and include filename issue.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10902 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-29 15:49:20 +00:00
erictian a41b5272cd add native ide/ahci driver
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10901 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-29 05:50:45 +00:00