summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Application
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-04 03:20:55 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-04 03:20:55 +0000
commit109e9a6156b2c9540fd4b1b6ce17ac5be1fa03c4 (patch)
treececfbd5ce484c026dd321e384e2609761bd555ea /MdeModulePkg/Application
parent303ee61d53cde4c064729709fa890ead41bbe00b (diff)
downloadedk2-platforms-109e9a6156b2c9540fd4b1b6ce17ac5be1fa03c4.tar.xz
Code scrub for the following drivers and librarys.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7172 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Application')
-rw-r--r--MdeModulePkg/Application/HelloWorld/HelloWorld.c13
-rw-r--r--MdeModulePkg/Application/HelloWorld/HelloWorld.inf9
2 files changed, 13 insertions, 9 deletions
diff --git a/MdeModulePkg/Application/HelloWorld/HelloWorld.c b/MdeModulePkg/Application/HelloWorld/HelloWorld.c
index 5ffddfb481..19e5791fa8 100644
--- a/MdeModulePkg/Application/HelloWorld/HelloWorld.c
+++ b/MdeModulePkg/Application/HelloWorld/HelloWorld.c
@@ -1,7 +1,8 @@
/** @file
- This simple application just print a "UEFI Hello World!" to the UEFI Console.
-
- Copyright (c) 2006 - 2007, Intel Corporation
+ This sample application bases on HelloWorld PCD setting
+ to print "UEFI Hello World!" to the UEFI Console.
+
+ Copyright (c) 2006 - 2008, 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
@@ -20,8 +21,7 @@
/**
The user Entry Point for Application. The user code starts with this function
- as the real entry point for the image goes into a library that calls this
- function.
+ as the real entry point for the application.
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
@@ -46,6 +46,9 @@ UefiMain (
//
if (FeaturePcdGet (PcdHelloWorldPrintEnable)) {
for (Index = 0; Index < PcdGet32 (PcdHelloWorldPrintTimes); Index ++) {
+ //
+ // Use UefiLib Print API to print string to UEFI console
+ //
Print ((CHAR16*)PcdGetPtr (PcdHelloWorldPrintString));
}
}
diff --git a/MdeModulePkg/Application/HelloWorld/HelloWorld.inf b/MdeModulePkg/Application/HelloWorld/HelloWorld.inf
index c284fa4460..50fb686319 100644
--- a/MdeModulePkg/Application/HelloWorld/HelloWorld.inf
+++ b/MdeModulePkg/Application/HelloWorld/HelloWorld.inf
@@ -1,8 +1,10 @@
#/** @file
-# Sample UEFI Application Reference Module
+# Sample UEFI Application Reference EDKII Module
#
-# This is a shell application that will display Hello World.
-# Copyright (c) 2008, Intel Corporation.
+# This is a shell application that will display Hello World.
+# It uses EDKII PCD feature to show PCD usage and configuration.
+#
+# Copyright (c) 2008, 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
@@ -20,7 +22,6 @@
FILE_GUID = 6987936E-ED34-44db-AE97-1FA5E4ED2116
MODULE_TYPE = UEFI_APPLICATION
VERSION_STRING = 1.0
-
ENTRY_POINT = UefiMain
#