summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Application
diff options
context:
space:
mode:
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
#