VirtualBox

source: vbox/trunk/src/VBox/Runtime/common/misc/zero-alt.S@ 87159

Last change on this file since 87159 was 87149, checked in by vboxsync, 4 years ago

/Config.kmk,IPRT: Assembler/ly adjustments for bugref:9898. Shut up backdoor logging for now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1; $Id: zero-alt.S 87149 2020-12-30 23:02:07Z vboxsync $
2;; @file
3; IPRT - Zero Memory, mach-o version (for arm).
4;
5
6;
7; Copyright (C) 2013-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;
17; The contents of this file may alternatively be used under the terms
18; of the Common Development and Distribution License Version 1.0
19; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20; VirtualBox OSE distribution, in which case the provisions of the
21; CDDL are applicable instead of those of the GPL.
22;
23; You may elect to license modified versions of this file under the
24; terms and conditions of either the GPL or the CDDL or both.
25;
26
27
28; Putting it in the code segment/section for now.
29#ifdef ASM_FORMAT_MACHO
30 .section __TEXT,__text,regular,pure_instructions
31 .section __TEXT,__const
32# define NAME(a) _##a
33#else
34# error "PORT ME!"
35#endif
36
37;;
38; 64KB of zero memory with various sized labels.
39 .globl NAME(g_abRTZeroPage)
40#ifdef ASM_FORMAT_ELF
41 .size NAME(g_abRTZeroPage),16384
42#endif
43NAME(g_abRTZeroPage):
44 .globl NAME(g_abRTZero4K)
45#ifdef ASM_FORMAT_ELF
46 .size NAME(g_abRTZero4K),4096
47#endif
48NAME(g_abRTZero4K):
49 .globl NAME(g_abRTZero8K)
50NAME(g_abRTZero8K):
51#ifdef ASM_FORMAT_ELF
52 .size NAME(g_abRTZero8K),8192
53#endif
54 .globl NAME(g_abRTZero16K)
55NAME(g_abRTZero16K):
56#ifdef ASM_FORMAT_ELF
57 .size NAME(g_abRTZero16K),16384
58#endif
59 .globl NAME(g_abRTZero32K)
60NAME(g_abRTZero32K):
61 .globl NAME(g_abRTZero64K)
62#ifdef ASM_FORMAT_ELF
63 .size NAME(g_abRTZero32K),32768
64#endif
65NAME(g_abRTZero64K):
66 .space 65536
67#ifdef ASM_FORMAT_ELF
68 .size NAME(g_abRTZero64K),65536
69#endif
70
Note: See TracBrowser for help on using the repository browser.

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