Adds `crt1.o` for the UEFI platform in the LLVM C library. This makes things start to become useful.
35 lines
1017 B
C++
35 lines
1017 B
C++
//===-- Classes to capture properites of UEFI applications ------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_CONFIG_UEFI_APP_H
|
|
#define LLVM_LIBC_CONFIG_UEFI_APP_H
|
|
|
|
#include "include/llvm-libc-types/EFI_HANDLE.h"
|
|
#include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"
|
|
#include "src/__support/macros/config.h"
|
|
#include "src/__support/macros/properties/architectures.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace LIBC_NAMESPACE_DECL {
|
|
|
|
// Data structure which captures properties of a UEFI application.
|
|
struct AppProperties {
|
|
// UEFI system table
|
|
EFI_SYSTEM_TABLE *system_table;
|
|
|
|
// UEFI image handle
|
|
EFI_HANDLE image_handle;
|
|
};
|
|
|
|
[[gnu::weak]] extern AppProperties app;
|
|
|
|
} // namespace LIBC_NAMESPACE_DECL
|
|
|
|
#endif // LLVM_LIBC_CONFIG_UEFI_APP_H
|