]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Application/HelloWorld/HelloWorld.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Application / HelloWorld / HelloWorld.c
index 0008cd14fda9f5f0fbf21b8df2a65682bfcc013d..ab581c040cdde99acbb4b467b08d1c4be787d6d5 100644 (file)
@@ -3,13 +3,7 @@
   to print "UEFI Hello World!" to the UEFI Console.\r
 \r
   Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   to print "UEFI Hello World!" to the UEFI Console.\r
 \r
   Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
-  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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 \r
 **/\r
 \r
@@ -26,7 +20,7 @@
 // the resource section. Thus the application can use '-?' option to show help message in\r
 // Shell.\r
 //\r
 // the resource section. Thus the application can use '-?' option to show help message in\r
 // Shell.\r
 //\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_HELLO_WORLD_HELP_INFORMATION);\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID  mStringHelpTokenId = STRING_TOKEN (STR_HELLO_WORLD_HELP_INFORMATION);\r
 \r
 /**\r
   The user Entry Point for Application. The user code starts with this function\r
 \r
 /**\r
   The user Entry Point for Application. The user code starts with this function\r
@@ -46,7 +40,7 @@ UefiMain (
   IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
 {\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
 {\r
-  UINT32 Index;\r
+  UINT32  Index;\r
 \r
   Index = 0;\r
 \r
 \r
   Index = 0;\r
 \r
@@ -54,11 +48,11 @@ UefiMain (
   // Three PCD type (FeatureFlag, UINT32 and String) are used as the sample.\r
   //\r
   if (FeaturePcdGet (PcdHelloWorldPrintEnable)) {\r
   // Three PCD type (FeatureFlag, UINT32 and String) are used as the sample.\r
   //\r
   if (FeaturePcdGet (PcdHelloWorldPrintEnable)) {\r
-    for (Index = 0; Index < PcdGet32 (PcdHelloWorldPrintTimes); Index ++) {\r
+    for (Index = 0; Index < PcdGet32 (PcdHelloWorldPrintTimes); Index++) {\r
       //\r
       // Use UefiLib Print API to print string to UEFI console\r
       //\r
       //\r
       // Use UefiLib Print API to print string to UEFI console\r
       //\r
-      Print ((CHAR16*)PcdGetPtr (PcdHelloWorldPrintString));\r
+      Print ((CHAR16 *)PcdGetPtr (PcdHelloWorldPrintString));\r
     }\r
   }\r
 \r
     }\r
   }\r
 \r