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