summaryrefslogtreecommitdiff
path: root/lib/efi_loader/helloworld.c
blob: 03e65ab1336dcc44b8a350f6c70e7b8472816f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * EFI hello world
 *
 * Copyright (c) 2016 Google, Inc
 * Written by Simon Glass <sjg@chromium.org>
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#include <common.h>
#include <part_efi.h>
#include <efi_api.h>

efi_status_t EFIAPI efi_main(efi_handle_t handle,
			     struct efi_system_table *systable)
{
	struct efi_simple_text_output_protocol *con_out = systable->con_out;
	struct efi_boot_services *boottime = systable->boottime;

	con_out->output_string(con_out, L"Hello, world!\n");
	boottime->exit(handle, 0, 0, NULL);

	return EFI_SUCCESS;
}