blob: 77130a36dd180d100a07dca6abfd4479ffd6573c [file] [log] [blame]
Simon Glassfac4ced2016-11-07 08:47:08 -07001/*
2 * EFI hello world
3 *
4 * Copyright (c) 2016 Google, Inc
5 * Written by Simon Glass <sjg@chromium.org>
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10#include <common.h>
Simon Glassfac4ced2016-11-07 08:47:08 -070011#include <efi_api.h>
12
13efi_status_t EFIAPI efi_main(efi_handle_t handle,
14 struct efi_system_table *systable)
15{
16 struct efi_simple_text_output_protocol *con_out = systable->con_out;
17 struct efi_boot_services *boottime = systable->boottime;
18
19 con_out->output_string(con_out, L"Hello, world!\n");
20 boottime->exit(handle, 0, 0, NULL);
21
22 return EFI_SUCCESS;
23}