Changeset 524 for trunk/src


Ignore:
Timestamp:
Aug 17, 1999, 2:46:20 PM (26 years ago)
Author:
sandervl
Message:

threadid replacement; fixes crashes during memory allocation when FS makefile= 150b

Location:
trunk/src/odincrt
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/odincrt/makefile

    r510 r524  
    1 # $Id: makefile,v 1.5 1999-08-16 16:28:03 sandervl Exp $
     1# $Id: makefile,v 1.6 1999-08-17 12:46:04 sandervl Exp $
    22
    33#
     
    1919TARGET = odincrt
    2020
    21 OBJS =  odincrt.obj odinfs.obj initterm.obj
     21OBJS =  odincrt.obj initterm.obj
    2222
    2323all: $(TARGET).dll $(TARGET).lib
     
    3232        $(CP) $@ $(PDWIN32_LIB)
    3333
    34 
    35 odincrt.obj: odincrt.cpp $(PDWIN32_INCLUDE)\odincrt.h
    36 
    3734initterm.obj: initterm.cpp
    3835
    39 odinfs.obj: odinfs.asm
     36odincrt.obj: odincrt.asm
    4037
    4138clean:
  • trunk/src/odincrt/odincrt.def

    r517 r524  
    1 ; $Id: odincrt.def,v 1.15 1999-08-16 20:15:54 achimha Exp $
     1; $Id: odincrt.def,v 1.16 1999-08-17 12:46:04 sandervl Exp $
    22; Odin VAC++ 3.08 shared multithreaded runtime
    33LIBRARY ODINCRT INITINSTANCE TERMINSTANCE
     
    1818; memory management
    1919; -----------------
    20        ODIN_calloc
    21        calloc                  = ODIN_calloc          @346
    22 
    23        ODIN_realloc
    24        realloc                 = ODIN_realloc         @583
    25 
    26        ODIN_malloc
    27        malloc                  = ODIN_malloc          @351
    28 
    29        ODIN_free
    30        free                    = ODIN_free            @219
    31 
    32        ODIN_debug_calloc
    33        _debug_calloc           = ODIN_debug_calloc    @117
    34 
    35        ODIN_debug_realloc
    36        _debug_realloc          = ODIN_debug_realloc   @182
    37 
    38        ODIN_debug_malloc
    39        _debug_malloc           = ODIN_debug_malloc    @119
    40 
    41        ODIN_debug_free
    42        _debug_free             = ODIN_debug_free      @59
    43 
    44 ; -----------------
    45 ; string management
    46 ; -----------------
    47 
    48        ODIN_strdup
    49        strdup                  = ODIN_strdup          @472
    50 
    51 ; -----------------
    52 ; C++ wrappers
    53 ; -----------------
    54 
    55 ;      ODIN__nw__FUi
    56 ;      __nw__FUi               = ODIN__nw__FUi   ; operator new()
    57 
    58 
     20       calloc                                           @346
     21       realloc                                          @583
     22       malloc                                           @351
     23       free                                             @219
     24       _debug_calloc                                    @117
     25       _debug_realloc                                   @182
     26       _debug_malloc                                    @119
     27       _debug_free                                      @59
     28       strdup                                           @472
    5929
    6030; original exports
  • trunk/src/odincrt/odinfs.asm

    r438 r524  
    1 ; $Id: odinfs.asm,v 1.1 1999-08-09 11:21:46 phaller Exp $
     1; $Id: odinfs.asm,v 1.2 1999-08-17 12:46:05 sandervl Exp $
    22
    33;/*
     
    1616CODE32          SEGMENT DWORD PUBLIC USE32 'CODE'
    1717                ASSUME  CS:FLAT ,DS:FLAT,SS:FLAT
     18
     19                PUBLIC  __threadid
     20__threadid proc near
     21        push    ebp
     22        push    fs
     23        mov     ax, 150bh
     24        mov     fs, ax
     25               
     26        mov     eax,dword ptr fs:[0000000cH]
     27
     28        pop     fs
     29        mov     ebp,esp
     30        leave   
     31        ret     
     32__threadid endp
    1833
    1934        PUBLIC GetFS
Note: See TracChangeset for help on using the changeset viewer.