Last change
on this file since 3003 was 2884, checked in by bird, 19 years ago |
buildable.
|
-
Property svn:keywords
set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | ; $Id: kLdrExeStub-os2.asm 2884 2006-11-18 12:55:48Z bird $
|
---|
2 | ;; @file
|
---|
3 | ;
|
---|
4 | ; kLdr - OS/2 Loader Stub.
|
---|
5 | ;
|
---|
6 | ; This file contains a 64kb code/data/stack segment which is used to kick off
|
---|
7 | ; the loader dll that loads the process.
|
---|
8 | ;
|
---|
9 | ; Copyright (c) 2006 Knut St. Osmundsen <bird-source-spam@anduin.net>
|
---|
10 | ;
|
---|
11 | ; GPL
|
---|
12 | ;
|
---|
13 |
|
---|
14 | struc KLDRARGS
|
---|
15 | .fFlags resd 1
|
---|
16 | .enmSearch resd 1
|
---|
17 | .szExecutable resb 260
|
---|
18 | .szDefPrefix resb 16
|
---|
19 | .szDefSuffix resb 16
|
---|
20 | .szLibPath resb (4096 - (4 + 4 + 16 + 16 + 260))
|
---|
21 | endstruc
|
---|
22 |
|
---|
23 | extern _kLdrDyldLoadExe
|
---|
24 |
|
---|
25 |
|
---|
26 | segment DATA32 stack CLASS=DATA align=16 use32
|
---|
27 | ..start:
|
---|
28 | push args
|
---|
29 | jmp _kLdrDyldLoadExe
|
---|
30 |
|
---|
31 | ;
|
---|
32 | ; Argument structure.
|
---|
33 | ;
|
---|
34 | align 4
|
---|
35 | args:
|
---|
36 | istruc KLDRARGS
|
---|
37 | at KLDRARGS.fFlags, dd 0
|
---|
38 | at KLDRARGS.enmSearch, dd 2 ;KLDRDYLD_SEARCH_HOST
|
---|
39 | at KLDRARGS.szDefPrefix, db ''
|
---|
40 | at KLDRARGS.szDefSuffix, db '.dll'
|
---|
41 | ; at KLDRARGS.szExecutable, db 'tst-0.exe'
|
---|
42 | at KLDRARGS.szLibPath, db ''
|
---|
43 | iend
|
---|
44 |
|
---|
45 | segment STACK32 stack CLASS=STACK align=16 use32
|
---|
46 | ; pad up to 64KB.
|
---|
47 | resb 60*1024
|
---|
48 |
|
---|
49 | global WEAK$ZERO
|
---|
50 | WEAK$ZERO EQU 0
|
---|
51 | group DGROUP, DATA32 STACK32
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.