2.Fix a bug in EBC, the periodic callback timer should be 1s
3.Add a dependency file for DriverSample in UI since it consume EFI_SIMPLE_TEXT_OUT protocol.
4.Fix a memory allocation defects in DriverSample.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2227
6f19259b-4bc3-4df7-8a09-
765794883524
Str += 1;\r
}\r
//\r
- // skip preceeding white space\r
+ // skip preceeding character 'x' or 'X'\r
//\r
if (*Str && (*Str == 'x' || *Str == 'X')) {\r
Str += 1;\r
// Define a constant of how often to call the debugger periodic callback\r
// function.\r
//\r
-#define EBC_VM_PERIODIC_CALLBACK_RATE 1000\r
+#define EFI_TIMER_UNIT_1MS (1000 * 10)\r
+#define EBC_VM_PERIODIC_CALLBACK_RATE (1000 * EFI_TIMER_UNIT_1MS)\r
\r
EFI_STATUS\r
EbcDebugSignalPeriodic (\r
//\r
// Allocate space for creation of Buffer\r
//\r
- QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck));\r
+ QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck) - (UINTN) (&NVStruc));\r
Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
0x1000,\r
--- /dev/null
+/*++\r
+\r
+Copyright (c) 2007, Intel Corporation \r
+All rights reserved. This program and the accompanying materials \r
+are licensed and made available under the terms and conditions of the BSD License \r
+which accompanies this distribution. The full text of the license may be found at \r
+http://opensource.org/licenses/bsd-license.php \r
+ \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Module Name:\r
+\r
+ DriverSample.dxs\r
+\r
+Abstract:\r
+\r
+ Dependency expression source file.\r
+ \r
+--*/\r
+\r
+#include <DxeDepex.h>\r
+\r
+DEPENDENCY_START\r
+ EFI_SIMPLE_TEXT_OUT_PROTOCOL_GUID\r
+DEPENDENCY_END\r
<Filename>DriverSample.c</Filename>\r
<Filename>NVDataStruc.h</Filename>\r
<Filename>DriverSample.h</Filename>\r
+ <Filename>DriverSample.dxs</Filename>\r
</SourceFiles>\r
<PackageDependencies>\r
<Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r