1 | /* $Id: DevEFI-binaries.S 104022 2024-03-24 18:30:39Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * DevEFI - firmware binaries.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
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
|
---|
26 | */
|
---|
27 |
|
---|
28 |
|
---|
29 | #ifdef RT_OS_DARWIN
|
---|
30 | #define NAME(a_Name) _##a_Name
|
---|
31 | #else
|
---|
32 | #define NAME(a_Name) a_Name
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #ifdef RT_OS_DARWIN
|
---|
36 | .section __TEXT,__const
|
---|
37 | #else
|
---|
38 | .section .text
|
---|
39 | #endif
|
---|
40 |
|
---|
41 | /* 32-bit firmware: */
|
---|
42 | .p2align 6
|
---|
43 | .globl NAME(g_abEfiFirmware32)
|
---|
44 | NAME(g_abEfiFirmware32):
|
---|
45 | .incbin "VBoxEFI32.fd"
|
---|
46 | end_32_firmware:
|
---|
47 |
|
---|
48 | .p2align 2
|
---|
49 | .globl NAME(g_cbEfiFirmware32)
|
---|
50 | NAME(g_cbEfiFirmware32):
|
---|
51 | .long end_32_firmware - NAME(g_abEfiFirmware32)
|
---|
52 |
|
---|
53 |
|
---|
54 | /* 64-bit firmware: */
|
---|
55 | .p2align 6
|
---|
56 | .globl NAME(g_abEfiFirmware64)
|
---|
57 | NAME(g_abEfiFirmware64):
|
---|
58 | .incbin "VBoxEFI64.fd"
|
---|
59 | end_64_firmware:
|
---|
60 |
|
---|
61 | .p2align 2
|
---|
62 | .globl NAME(g_cbEfiFirmware64)
|
---|
63 | NAME(g_cbEfiFirmware64):
|
---|
64 | .long end_64_firmware - NAME(g_abEfiFirmware64)
|
---|
65 |
|
---|
66 | #ifdef ASM_FORMAT_ELF
|
---|
67 | .size g_abEfiFirmware32, end_32_firmware - NAME(g_abEfiFirmware32)
|
---|
68 | .type g_abEfiFirmware32 object
|
---|
69 | .size g_cbEfiFirmware32, 4
|
---|
70 | .type g_cbEfiFirmware32 object
|
---|
71 |
|
---|
72 | .size g_abEfiFirmware64, end_64_firmware - NAME(g_abEfiFirmware64)
|
---|
73 | .type g_abEfiFirmware64 object
|
---|
74 | .size g_cbEfiFirmware64, 4
|
---|
75 | .type g_cbEfiFirmware64 object
|
---|
76 | #endif
|
---|
77 |
|
---|
78 | #ifdef VBOX_WITH_VIRT_ARMV8
|
---|
79 | /*
|
---|
80 | * The ARMv8 bits
|
---|
81 | */
|
---|
82 |
|
---|
83 | /* 32-bit firmware: */
|
---|
84 | .p2align 6
|
---|
85 | .globl NAME(g_abEfiFirmwareAArch32)
|
---|
86 | NAME(g_abEfiFirmwareAArch32):
|
---|
87 | .incbin "VBoxEFIAArch32.fd"
|
---|
88 | end_aarch32_firmware:
|
---|
89 |
|
---|
90 | .p2align 2
|
---|
91 | .globl NAME(g_cbEfiFirmwareAArch32)
|
---|
92 | NAME(g_cbEfiFirmwareAArch32):
|
---|
93 | .long end_aarch32_firmware - NAME(g_abEfiFirmwareAArch32)
|
---|
94 |
|
---|
95 |
|
---|
96 | /* 64-bit firmware: */
|
---|
97 | .p2align 6
|
---|
98 | .globl NAME(g_abEfiFirmwareAArch64)
|
---|
99 | NAME(g_abEfiFirmwareAArch64):
|
---|
100 | .incbin "VBoxEFIAArch64.fd"
|
---|
101 | end_aarch64_firmware:
|
---|
102 |
|
---|
103 | .p2align 2
|
---|
104 | .globl NAME(g_cbEfiFirmwareAArch64)
|
---|
105 | NAME(g_cbEfiFirmwareAArch64):
|
---|
106 | .long end_aarch64_firmware - NAME(g_abEfiFirmwareAArch64)
|
---|
107 |
|
---|
108 | # ifdef ASM_FORMAT_ELF
|
---|
109 | .size g_abEfiFirmwareAArch32, end_aarch32_firmware - NAME(g_abEfiFirmwareAArch32)
|
---|
110 | .type g_abEfiFirmwareAArch32 object
|
---|
111 | .size g_cbEfiFirmwareAArch32, 4
|
---|
112 | .type g_cbEfiFirmwareAArch32 object
|
---|
113 |
|
---|
114 | .size g_abEfiFirmwareAArch64, end_aarch64_firmware - NAME(g_abEfiFirmwareAArch64)
|
---|
115 | .type g_abEfiFirmwareAArch64 object
|
---|
116 | .size g_cbEfiFirmwareAArch64, 4
|
---|
117 | .type g_cbEfiFirmwareAArch64 object
|
---|
118 | # endif
|
---|
119 | #endif
|
---|