]>
Commit | Line | Data |
---|---|---|
c7ae3dfd SG |
1 | /* |
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> | |
c7ae3dfd SG |
11 | #include <efi_api.h> |
12 | ||
13 | efi_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 | } |