]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/HelloWorld/HelloWorld.c
pdated code per coding standard. Changed comments, converted all \ to / and removed...
[mirror_edk2.git] / MdeModulePkg / Application / HelloWorld / HelloWorld.c
CommitLineData
b7d286b6 1/** @file\r
2 This simple application just print a "UEFI Hello World!" to the UEFI Console.\r
3 \r
4 Copyright (c) 2006 - 2007, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13**/\r
14\r
ab9140c8
A
15#include <Uefi.h>\r
16#include <Library/DebugLib.h>\r
17#include <Library/UefiLib.h>\r
18#include <Library/UefiApplicationEntryPoint.h>\r
19#include <Library/UefiBootServicesTableLib.h>\r
b7d286b6 20\r
b9575d60
A
21\r
22/**\r
23 The user Entry Point for Application. The user code starts with this function\r
24 as the real entry point for the image goes into a library that calls this \r
25 function.\r
26\r
27 @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
28 @param[in] SystemTable A pointer to the EFI System Table.\r
29 \r
30 @retval EFI_SUCCESS The entry point is executed successfully.\r
31 @retval other Some error occurs when executing this entry point.\r
32\r
33**/\r
b7d286b6 34EFI_STATUS\r
35EFIAPI\r
36UefiMain (\r
37 IN EFI_HANDLE ImageHandle,\r
38 IN EFI_SYSTEM_TABLE *SystemTable\r
39 )\r
40\r
41{\r
42 \r
43 Print ((CHAR16 *)L"UEFI Hello World!\n");\r
44\r
45 return EFI_SUCCESS;\r
46}\r