]> git.ipfire.org Git - thirdparty/u-boot.git/blob - lib/efi_selftest/efi_selftest_miniapp_return.c
net: hifemac_mdio: use log_msg_ret() correctly, report error by dev_err()
[thirdparty/u-boot.git] / lib / efi_selftest / efi_selftest_miniapp_return.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * efi_selftest_miniapp_return
4 *
5 * Copyright (c) 2018 Heinrich Schuchardt
6 *
7 * This EFI application is run by the StartImage selftest.
8 * It returns directly without calling the Exit boot service.
9 */
10
11 #include <efi_api.h>
12
13 /*
14 * Entry point of the EFI application.
15 *
16 * @handle handle of the loaded image
17 * @systable system table
18 * Return: status code
19 */
20 efi_status_t EFIAPI efi_main(efi_handle_t handle,
21 struct efi_system_table *systable)
22 {
23 struct efi_simple_text_output_protocol *con_out = systable->con_out;
24
25 con_out->output_string(con_out,
26 u"EFI application returning w/o calling Exit\n");
27
28 /* The return value is checked by the calling test */
29 return EFI_INCOMPATIBLE_VERSION;
30 }