blob: 03e65ab1336dcc44b8a350f6c70e7b8472816f78 [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>
11#include <part_efi.h>
12#include <efi_api.h>
13
14efi_status_t EFIAPI efi_main(efi_handle_t handle,
15 struct efi_system_table *systable)
16{
17 struct efi_simple_text_output_protocol *con_out = systable->con_out;
18 struct efi_boot_services *boottime = systable->boottime;
19
20 con_out->output_string(con_out, L"Hello, world!\n");
21 boottime->exit(handle, 0, 0, NULL);
22
23 return EFI_SUCCESS;
24}