VirtualBox

Changeset 87286 in vbox


Ignore:
Timestamp:
Jan 15, 2021 8:51:46 PM (4 years ago)
Author:
vboxsync
Message:

EFI: armasm version of DevEFI-binaries.asm. bugref:9898

Location:
trunk/src/VBox/Devices
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevEFI-binaries.S

    r87239 r87286  
    1 ; $Id$
    2 ;; @file
    3 ; DevEFI - firmware binaries.
    4 ;
     1/* $Id$ */
     2/** @file
     3 * DevEFI - firmware binaries.
     4 */
    55
    6 ;
    7 ; Copyright (C) 2011-2020 Oracle Corporation
    8 ;
    9 ; This file is part of VirtualBox Open Source Edition (OSE), as
    10 ; available from http://www.virtualbox.org. This file is free software;
    11 ; you can redistribute it and/or modify it under the terms of the GNU
    12 ; General Public License (GPL) as published by the Free Software
    13 ; Foundation, in version 2 as it comes in the "COPYING" file of the
    14 ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    15 ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16 ;
     6/*
     7 * Copyright (C) 2011-2020 Oracle Corporation
     8 *
     9 * This file is part of VirtualBox Open Source Edition (OSE), as
     10 * available from http://www.virtualbox.org. This file is free software;
     11 * you can redistribute it and/or modify it under the terms of the GNU
     12 * General Public License (GPL) as published by the Free Software
     13 * Foundation, in version 2 as it comes in the "COPYING" file of the
     14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     16 */
    1717
    1818
    19 ;*********************************************************************************************************************************
    20 ;*  Header Files                                                                                                                 *
    21 ;*********************************************************************************************************************************
    22 %include "VBox/asmdefs.mac"
    23 %include "VBox/err.mac"
    24 %include "iprt/x86.mac"
     19#ifdef RT_OS_DARWIN
     20#define NAME(a_Name) _##a_Name
     21#else
     22#define NAME(a_Name) a_Name
     23#endif
     24
     25.section __TEXT,__const
     26
     27; 32-bit firmware:
     28.p2align 6
     29.globl NAME(g_abEfiFirmware32)
     30NAME(g_abEfiFirmware32):
     31        .incbin "VBoxEFI32.fd"
     32end_32_firmware:
     33
     34.p2align 2
     35.globl NAME(g_cbEfiFirmware32)
     36NAME(g_cbEfiFirmware32):
     37        .long end_32_firmware - NAME(g_abEfiFirmware32)
    2538
    2639
    27 BEGINCONST
    28 EXPORTEDNAME g_abEfiFirmware32
    29         incbin "VBoxEFI32.fd"
    30 end_32_firmware:
    31 EXPORTEDNAME g_cbEfiFirmware32
    32         dd  end_32_firmware - NAME(g_abEfiFirmware32)
     40; 64-bit firmware:
     41.p2align 6
     42.globl NAME(g_abEfiFirmware64)
     43NAME(g_abEfiFirmware64):
     44        .incbin "VBoxEFI64.fd"
     45end_64_firmware:
    3346
    34 ALIGNDATA(64)
    35 EXPORTEDNAME g_abEfiFirmware64
    36         incbin "VBoxEFI64.fd"
    37 end_64_firmware:
    38 EXPORTEDNAME g_cbEfiFirmware64
    39         dd  end_64_firmware - NAME(g_abEfiFirmware64)
     47.p2align 2
     48.globl NAME(g_cbEfiFirmware64)
     49NAME(g_cbEfiFirmware64):
     50        .long  end_64_firmware - NAME(g_abEfiFirmware64)
    4051
    41 %ifdef ASM_FORMAT_ELF
    42 size g_abEfiFirmware32 end_32_firmware - NAME(g_abEfiFirmware32)
    43 type g_abEfiFirmware32 object
    44 size g_cbEfiFirmware32 4
    45 type g_cbEfiFirmware32 object
     52#ifdef ASM_FORMAT_ELF
     53.size g_abEfiFirmware32 end_32_firmware - NAME(g_abEfiFirmware32)
     54.type g_abEfiFirmware32 object
     55.size g_cbEfiFirmware32 4
     56.type g_cbEfiFirmware32 object
    4657
    47 size g_abEfiFirmware64 end_64_firmware - NAME(g_abEfiFirmware64)
    48 type g_abEfiFirmware64 object
    49 size g_cbEfiFirmware64 4
    50 type g_cbEfiFirmware64 object
    51 %endif
     58.size g_abEfiFirmware64 end_64_firmware - NAME(g_abEfiFirmware64)
     59.type g_abEfiFirmware64 object
     60.size g_cbEfiFirmware64 4
     61.type g_cbEfiFirmware64 object
     62#endif
  • trunk/src/VBox/Devices/Makefile.kmk

    r87050 r87286  
    11171117  VBoxDD_DEFS           += VBOX_WITH_EFI_IN_DD2
    11181118  VBoxDD2_DEFS          += VBOX_WITH_EFI
    1119   VBoxDD2_SOURCES       += \
    1120         EFI/DevEFI-binaries.asm
     1119  VBoxDD2_SOURCES.x86   += EFI/DevEFI-binaries.asm
     1120  VBoxDD2_SOURCES.amd64 += EFI/DevEFI-binaries.asm
    11211121  EFI/DevEFI-binaries.asm_ASINCS = $(PATH_STAGE)/$(INST_BIN)
    11221122  EFI/DevEFI-binaries.asm_DEPS   = \
     1123        $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
     1124        $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
     1125
     1126  VBoxDD2_SOURCES.arm64 += EFI/DevEFI-binaries.S
     1127  EFI/DevEFI-binaries.S_ASINCS = $(PATH_STAGE)/$(INST_BIN)
     1128  EFI/DevEFI-binaries.S_DEPS   = \
    11231129        $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
    11241130        $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette