VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3kit/asmdefs-first.mac@ 106560

Last change on this file since 106560 was 106560, checked in by vboxsync, 3 months ago

IPRT: Sort out export/import trouble with 'inline-assembly' functions implemented in C++ on windows by introducing a RT_DECL_ASM() macro that combines RTDECL with DECLASM. [build fix] jiraref:VBP-1171

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1; $Id: asmdefs-first.mac 106560 2024-10-21 12:28:40Z vboxsync $
2;; @file
3; BS3Kit - Included by asmdefs.mac when assembling IPRT code.
4;
5; This will only be included if asmdefs.mac is included before bs3kit.mac, so
6; it will not be used for bs3*.asm files, only IPRT ones.
7;
8
9;
10; Copyright (C) 2006-2024 Oracle and/or its affiliates.
11;
12; This file is part of VirtualBox base platform packages, as
13; available from https://www.virtualbox.org.
14;
15; This program is free software; you can redistribute it and/or
16; modify it under the terms of the GNU General Public License
17; as published by the Free Software Foundation, in version 3 of the
18; License.
19;
20; This program is distributed in the hope that it will be useful, but
21; WITHOUT ANY WARRANTY; without even the implied warranty of
22; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23; General Public License for more details.
24;
25; You should have received a copy of the GNU General Public License
26; along with this program; if not, see <https://www.gnu.org/licenses>.
27;
28; The contents of this file may alternatively be used under the terms
29; of the Common Development and Distribution License Version 1.0
30; (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
31; in the VirtualBox distribution, in which case the provisions of the
32; CDDL are applicable instead of those of the GPL.
33;
34; You may elect to license modified versions of this file under the
35; terms and conditions of either the GPL or the CDDL or both.
36;
37; SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
38;
39
40
41%ifndef ___asmdefs_first_mac
42%define ___asmdefs_first_mac
43
44%include "bs3kit-template-header.mac"
45
46;
47; Redefine some macros to suite us.
48;
49; We do near 16-bit code and produce far stubs separately as needed.
50;
51%define BEGINCODE TMPL_BEGIN_TEXT
52%define BEGINPROC BS3_BEGINPROC_WRAPPER
53%define BEGINPROC_EXPORTED BS3_BEGINPROC_EXPORTED_WRAPPER
54%define ENDPROC BS3_PROC_END_CMN
55%undef NAME
56%define NAME(a) BS3_CMN_NM(a)
57
58%macro BS3_BEGINPROC_WRAPPER 1-2 0 ; %2 is ignored as we don't do endbr32/64
59BS3_PROC_BEGIN_CMN %1, BS3_PBC_NEAR
60%endmacro
61
62%macro BS3_BEGINPROC_EXPORTED_WRAPPER 1-2 0 ; %2 is ignored as we don't do endbr32/64
63BS3_PROC_BEGIN_CMN %1, BS3_PBC_NEAR
64%endmacro
65
66%endif
67
Note: See TracBrowser for help on using the repository browser.

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