Simon Glass | fac4ced | 2016-11-07 08:47:08 -0700 | [diff] [blame^] | 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> |
| 11 | #include <part_efi.h> |
| 12 | #include <efi_api.h> |
| 13 | |
| 14 | efi_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 | } |