diff options
author | Tom Rini <trini@konsulko.com> | 2016-11-17 11:46:45 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-17 11:46:45 -0500 |
commit | 9e40ea04e9f1a70a184504c9e2beb051eb2d9335 (patch) | |
tree | dddf5ab6a2ce464955233c7ae542ec102bb12050 /lib/efi_loader/helloworld.c | |
parent | 688d1be5ba63be281c2894e74b27209133598e2e (diff) | |
parent | b99ebaf9f01ebe864061818e00beb70cb1ddc635 (diff) |
Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot
Patch queue for efi - 2016-11-17
Highlights this time around:
- x86 efi_loader support
- hello world efi test case
- network device name is now representative
- terminal output reports modes correctly
- fix psci reset for ls1043/ls1046
- fix efi_add_runtime_mmio definition for x86
- efi_loader support for ls2080
Diffstat (limited to 'lib/efi_loader/helloworld.c')
-rw-r--r-- | lib/efi_loader/helloworld.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/efi_loader/helloworld.c b/lib/efi_loader/helloworld.c new file mode 100644 index 0000000000..03e65ab133 --- /dev/null +++ b/lib/efi_loader/helloworld.c @@ -0,0 +1,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; +} |