1 | ; $Id: VBoxHlp.asm 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; VBox Qt GUI - Implementation of OS/2-specific helpers that require to reside in a DLL.
|
---|
4 | ;
|
---|
5 | ; This stub is used to avoid linking the helper DLL to the C runtime.
|
---|
6 | ;
|
---|
7 |
|
---|
8 | ;
|
---|
9 | ; Copyright (C) 2008-2019 Oracle Corporation
|
---|
10 | ;
|
---|
11 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
13 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | ; General Public License (GPL) as published by the Free Software
|
---|
15 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | ;
|
---|
19 |
|
---|
20 | ;; @todo BEGINCODE gives us this:
|
---|
21 | ;
|
---|
22 | ; 02-03-2008 22:19:37 SYS3175 PID 4383 TID 0001 Slot 0076
|
---|
23 | ; D:\CODING\INNOTEK\VBOX\OUT\OS2.X86\RELEASE\BIN\VIRTUALBOX.EXE
|
---|
24 | ; c0000005
|
---|
25 | ; 17d40000
|
---|
26 | ; P1=00000008 P2=0000bea4 P3=XXXXXXXX P4=XXXXXXXX
|
---|
27 | ; EAX=00001489 EBX=00000000 ECX=00000000 EDX=00000000
|
---|
28 | ; ESI=00000000 EDI=00001489
|
---|
29 | ; DS=be7f DSACC=00f3 DSLIM=0000003f
|
---|
30 | ; ES=0053 ESACC=f0f3 ESLIM=ffffffff
|
---|
31 | ; FS=150b FSACC=00f3 FSLIM=00000030
|
---|
32 | ; GS=0000 GSACC=**** GSLIM=********
|
---|
33 | ; CS:EIP=bea7:00000000 CSACC=00f2 CSLIM=00000002
|
---|
34 | ; SS:ESP=01d7:0000ffe8 SSACC=00f3 SSLIM=0000ffff
|
---|
35 | ; EBP=00000000 FLG=00012202
|
---|
36 | ;
|
---|
37 | ; VBOXHLP.DLL 0003:00000000
|
---|
38 | ;
|
---|
39 | ; Looks like the previous 'segment TEXT32 ...' definition in asmdefs.mac
|
---|
40 | ; is ignored and the segment is redefined as if it had no 'CLASS=CODE...'
|
---|
41 | ; attributes...
|
---|
42 |
|
---|
43 | ;%include "iprt/asmdefs.mac"
|
---|
44 | ;
|
---|
45 | ;BEGINCODE
|
---|
46 |
|
---|
47 | segment TEXT32 public CLASS=CODE align=16 use32 flat
|
---|
48 |
|
---|
49 | extern _DLL_InitTerm
|
---|
50 |
|
---|
51 | ; Low-level DLL entry point - Forward to the C code.
|
---|
52 | ..start:
|
---|
53 | jmp _DLL_InitTerm
|
---|
54 |
|
---|
55 |
|
---|
56 | ; emxomfld may generate references to this for weak symbols. It is usually
|
---|
57 | ; found in in libend.lib.
|
---|
58 | ABSOLUTE 0
|
---|
59 | global WEAK$ZERO
|
---|
60 | WEAK$ZERO:
|
---|
61 |
|
---|