Skip to content

Commit

Permalink
Merge pull request Aniket965#711 from GarbageCollections/master
Browse files Browse the repository at this point in the history
LETS PARTY!
  • Loading branch information
Aniket965 authored Oct 8, 2018
2 parents 3d270fc + 05d2e61 commit 876463f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions C/uefi_helloworld.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// EDK2
#include <Uefi.h>
#include <Library/UefiLib.h>

EFI_STATUS EFIAPI UefiMain(IN EFI_HANDLE IH, IN EFI_SYSTEM_TABLE *ST) {
auto console = ST->ConOut;

//We want blank screen!
console->ClearScreen(console);
CHAR16 *msg = L"Hello world!";
console->OutString(msg);

// Pause
while(1);
//Never get to here, just make compiler happy :)
return EFI_SUCCESS;
}

0 comments on commit 876463f

Please sign in to comment.