| Last change
 on this file since 3880 was             1545, checked in by bird, 21 years ago | 
        
          | 
Inital coding.
 | 
        
          | 
              
Property                 cvs2svn:cvs-rev
 set to                 1.1
Property                 svn:eol-style
 set to                 native
Property                 svn:executable
 set to                 *
Property                 svn:keywords
 set to                 Author Date Id Revision | 
        
          | File size:
            1.4 KB | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: resolver.s 1545 2004-10-07 06:36:42Z bird $ */ | 
|---|
| 2 | /** @file | 
|---|
| 3 | * | 
|---|
| 4 | * Lazy Import - resolver. | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright (c) 2004 knut st. osmundsen <bird@innotek.de> | 
|---|
| 7 | * | 
|---|
| 8 | * | 
|---|
| 9 | * This file is part of InnoTek LIBC. | 
|---|
| 10 | * | 
|---|
| 11 | * InnoTek LIBC is free software; you can redistribute it and/or modify | 
|---|
| 12 | * it under the terms of the GNU Lesser General Public License as published | 
|---|
| 13 | * by the Free Software Foundation; either version 2 of the License, or | 
|---|
| 14 | * (at your option) any later version. | 
|---|
| 15 | * | 
|---|
| 16 | * InnoTek LIBC is distributed in the hope that it will be useful, | 
|---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 19 | * GNU Lesser General Public License for more details. | 
|---|
| 20 | * | 
|---|
| 21 | * You should have received a copy of the GNU Lesser General Public License | 
|---|
| 22 | * along with InnoTek LIBC; if not, write to the Free Software | 
|---|
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
|---|
| 24 | * | 
|---|
| 25 | */ | 
|---|
| 26 |  | 
|---|
| 27 | #include <emx/asm386.h> | 
|---|
| 28 |  | 
|---|
| 29 | .text | 
|---|
| 30 | .globl ___lazyimp_resolver | 
|---|
| 31 | ___lazyimp_resolver: | 
|---|
| 32 | push    %eax | 
|---|
| 33 | push    %edx | 
|---|
| 34 | push    %ecx | 
|---|
| 35 | call    LABEL(__lazyimp_resolver2) | 
|---|
| 36 | // - eax is resolved function address. | 
|---|
| 37 | // stack: | 
|---|
| 38 | //      0   ecx | 
|---|
| 39 | //      4   edx | 
|---|
| 40 | //      8   edx | 
|---|
| 41 | //     12   phmod | 
|---|
| 42 | //     16   mod_name | 
|---|
| 43 | //     20   ppfn | 
|---|
| 44 | //     24   symbol | 
|---|
| 45 | mov     %eax, 24(%esp) | 
|---|
| 46 | pop     %ecx | 
|---|
| 47 | pop     %edx | 
|---|
| 48 | pop     %eax | 
|---|
| 49 | lea     12(%esp), %esp | 
|---|
| 50 | ret | 
|---|
| 51 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.