VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/DevEFI-binaries.S

Last change on this file was 104022, checked in by vboxsync, 8 weeks ago

VMM/testcase/tstIEMAImplDataSseBinary.S,Devices/EFI/DevEFI-binaries.S: gas doesn't like ; style comments, convert to standard C style comments to make it build on linux.arm64, bugref:10391

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
RevLine 
[87286]1/* $Id: DevEFI-binaries.S 104022 2024-03-24 18:30:39Z vboxsync $ */
2/** @file
3 * DevEFI - firmware binaries.
4 */
[81450]5
[87286]6/*
[98103]7 * Copyright (C) 2011-2023 Oracle and/or its affiliates.
[87286]8 *
[96407]9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
[87286]26 */
[81450]27
28
[87286]29#ifdef RT_OS_DARWIN
30#define NAME(a_Name) _##a_Name
31#else
32#define NAME(a_Name) a_Name
33#endif
[81450]34
[104022]35#ifdef RT_OS_DARWIN
[87286]36.section __TEXT,__const
[104022]37#else
38.section .text
39#endif
[81450]40
[104022]41/* 32-bit firmware: */
[87286]42.p2align 6
43.globl NAME(g_abEfiFirmware32)
44NAME(g_abEfiFirmware32):
45 .incbin "VBoxEFI32.fd"
[81450]46end_32_firmware:
47
[87286]48.p2align 2
49.globl NAME(g_cbEfiFirmware32)
50NAME(g_cbEfiFirmware32):
51 .long end_32_firmware - NAME(g_abEfiFirmware32)
52
53
[104022]54/* 64-bit firmware: */
[87286]55.p2align 6
56.globl NAME(g_abEfiFirmware64)
57NAME(g_abEfiFirmware64):
58 .incbin "VBoxEFI64.fd"
[81450]59end_64_firmware:
60
[87286]61.p2align 2
62.globl NAME(g_cbEfiFirmware64)
63NAME(g_cbEfiFirmware64):
64 .long end_64_firmware - NAME(g_abEfiFirmware64)
[81779]65
[87286]66#ifdef ASM_FORMAT_ELF
[104022]67.size g_abEfiFirmware32, end_32_firmware - NAME(g_abEfiFirmware32)
[87286]68.type g_abEfiFirmware32 object
[104022]69.size g_cbEfiFirmware32, 4
[87286]70.type g_cbEfiFirmware32 object
71
[104022]72.size g_abEfiFirmware64, end_64_firmware - NAME(g_abEfiFirmware64)
[87286]73.type g_abEfiFirmware64 object
[104022]74.size g_cbEfiFirmware64, 4
[87286]75.type g_cbEfiFirmware64 object
76#endif
[99927]77
[101616]78#ifdef VBOX_WITH_VIRT_ARMV8
[104022]79/*
80 * The ARMv8 bits
81 */
[99927]82
[104022]83/* 32-bit firmware: */
[99927]84.p2align 6
85.globl NAME(g_abEfiFirmwareAArch32)
86NAME(g_abEfiFirmwareAArch32):
87 .incbin "VBoxEFIAArch32.fd"
88end_aarch32_firmware:
89
90.p2align 2
91.globl NAME(g_cbEfiFirmwareAArch32)
92NAME(g_cbEfiFirmwareAArch32):
93 .long end_aarch32_firmware - NAME(g_abEfiFirmwareAArch32)
94
95
[104022]96/* 64-bit firmware: */
[99927]97.p2align 6
98.globl NAME(g_abEfiFirmwareAArch64)
99NAME(g_abEfiFirmwareAArch64):
100 .incbin "VBoxEFIAArch64.fd"
101end_aarch64_firmware:
102
103.p2align 2
104.globl NAME(g_cbEfiFirmwareAArch64)
105NAME(g_cbEfiFirmwareAArch64):
106 .long end_aarch64_firmware - NAME(g_abEfiFirmwareAArch64)
107
108# ifdef ASM_FORMAT_ELF
[104022]109.size g_abEfiFirmwareAArch32, end_aarch32_firmware - NAME(g_abEfiFirmwareAArch32)
[99927]110.type g_abEfiFirmwareAArch32 object
[104022]111.size g_cbEfiFirmwareAArch32, 4
[99927]112.type g_cbEfiFirmwareAArch32 object
113
[104022]114.size g_abEfiFirmwareAArch64, end_aarch64_firmware - NAME(g_abEfiFirmwareAArch64)
[99927]115.type g_abEfiFirmwareAArch64 object
[104022]116.size g_cbEfiFirmwareAArch64, 4
[99927]117.type g_cbEfiFirmwareAArch64 object
118# endif
119#endif
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use