summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Application
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-14 06:35:30 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-14 06:35:30 +0000
commit22d9199fe5bc0cc9b868b3e33c90a215ce8da3fd (patch)
tree8465ee72969e393e5a1f1614cc27705aeb440a9e /EdkModulePkg/Application
parentc0db4cdc640920a99133fc4b6c111e9bd9f9630b (diff)
downloadedk2-platforms-22d9199fe5bc0cc9b868b3e33c90a215ce8da3fd.tar.xz
Added Print, ErrorPrint, AsciiPrint, AsciiErrorPrint() to the UEFI Library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2392 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Application')
-rw-r--r--EdkModulePkg/Application/HelloWorld/HelloWorld.c25
-rw-r--r--EdkModulePkg/Application/HelloWorld/HelloWorld.msa21
2 files changed, 18 insertions, 28 deletions
diff --git a/EdkModulePkg/Application/HelloWorld/HelloWorld.c b/EdkModulePkg/Application/HelloWorld/HelloWorld.c
index cd6113fb77..0e8e752747 100644
--- a/EdkModulePkg/Application/HelloWorld/HelloWorld.c
+++ b/EdkModulePkg/Application/HelloWorld/HelloWorld.c
@@ -1,7 +1,7 @@
/** @file
- This driver supports platform security service
-
- Copyright (c) 2006, Intel Corporation
+ This simple application just print a "UEFI Hello World!" to the UEFI Console.
+
+ Copyright (c) 2006 - 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -12,22 +12,6 @@
**/
-STATIC
-VOID
-Print (
- IN CONST CHAR16 *Format,
- ...
- )
-{
- CHAR16 PrintBuffer[0x100];
- VA_LIST Marker;
-
- VA_START (Marker, Format);
- UnicodeVSPrint (PrintBuffer, sizeof (PrintBuffer), Format, Marker);
- gST->ConOut->OutputString (gST->ConOut, PrintBuffer);
- return;
-}
-
EFI_STATUS
EFIAPI
UefiMain (
@@ -36,6 +20,9 @@ UefiMain (
)
{
+ CHAR16 Ptr16;
+
Print ((CHAR16 *)L"UEFI Hello World!\n");
+
return EFI_SUCCESS;
}
diff --git a/EdkModulePkg/Application/HelloWorld/HelloWorld.msa b/EdkModulePkg/Application/HelloWorld/HelloWorld.msa
index 85e2db15d4..5f9192bdfe 100644
--- a/EdkModulePkg/Application/HelloWorld/HelloWorld.msa
+++ b/EdkModulePkg/Application/HelloWorld/HelloWorld.msa
@@ -7,12 +7,12 @@
<Version>1.0</Version>
<Abstract>Sample UEFI Application Reference Module</Abstract>
<Description>This is a shell application that will display Hello World.</Description>
- <Copyright>Copyright (c) 2006, Intel Corporation.</Copyright>
- <License>All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ <Copyright>Copyright (c) 2006 - 2007, Intel Corporation.</Copyright>
+ <License>All rights reserved. This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>
<Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
</MsaHeader>
@@ -29,10 +29,13 @@
<Keyword>DebugLib</Keyword>
</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">
- <Keyword>UefiBootServicesTableLib</Keyword>
+ <Keyword>UefiLib</Keyword>
+ </LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>UefiApplicationEntryPoint</Keyword>
</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">
- <Keyword>UefiDriverEntryPoint</Keyword>
+ <Keyword>UefiBootServicesTableLib</Keyword>
</LibraryClass>
</LibraryClassDefinitions>
<SourceFiles>
@@ -48,4 +51,4 @@
<ModuleEntryPoint>UefiMain</ModuleEntryPoint>
</Extern>
</Externs>
-</ModuleSurfaceArea>
+</ModuleSurfaceArea> \ No newline at end of file