Changeset 57


Ignore:
Timestamp:
Jul 15, 2010, 2:40:32 PM (15 years ago)
Author:
dmik
Message:

hotspot/src: Added OS/2 GCC assembly helper routines.

Location:
trunk/openjdk/hotspot/src/os_cpu/os2_x86
Files:
2 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/os_cpu/os2_x86/vm/os2_x86_32.s

    r22 r57  
    2222#
    2323
     24
     25# NOTE: This file is basically a copy of linux_x86-32.s with unnecessary
     26# functions thrown away
    2427       
    25         # NOTE WELL!  The _Copy functions are called directly
     28
     29        # NOTE WELL!  The __Copy functions are called directly
    2630        # from server-compiler-generated code via CallLeafNoFP,
    2731        # which means that they *must* either not use floating
     
    2933        # compiler.
    3034       
    31         .globl _Copy_conjoint_bytes
    32         .globl _Copy_arrayof_conjoint_bytes
    33         .globl _Copy_conjoint_jshorts_atomic
    34         .globl _Copy_arrayof_conjoint_jshorts
    35         .globl _Copy_conjoint_jints_atomic
    36         .globl _Copy_arrayof_conjoint_jints
    37         .globl _Copy_conjoint_jlongs_atomic
    38         .globl _mmx_Copy_arrayof_conjoint_jshorts
    39 
    40         .globl _Atomic_cmpxchg_long
     35        .globl __Copy_conjoint_bytes
     36        .globl __Copy_arrayof_conjoint_bytes
     37        .globl __Copy_conjoint_jshorts_atomic
     38        .globl __Copy_arrayof_conjoint_jshorts
     39        .globl __Copy_conjoint_jints_atomic
     40        .globl __Copy_arrayof_conjoint_jints
     41        .globl __Copy_conjoint_jlongs_atomic
     42        .globl __mmx_Copy_arrayof_conjoint_jshorts
     43
     44        .globl __Atomic_cmpxchg_long
    4145
    4246        .text
    43 
    44         .globl  SafeFetch32, Fetch32PFI, Fetch32Resume
    45         .globl  SafeFetchN
    46         ## TODO: avoid exposing Fetch32PFI and Fetch32Resume.
    47         ## Instead, the signal handler would call a new SafeFetchTriage(FaultingEIP)
    48         ## routine to vet the address.  If the address is the faulting LD then
    49         ## SafeFetchTriage() would return the resume-at EIP, otherwise null.
    50         .type    SafeFetch32,@function
    51         .p2align 4,,15
    52 SafeFetch32:
    53 SafeFetchN:
    54          movl    0x8(%esp), %eax
    55          movl    0x4(%esp), %ecx
    56 Fetch32PFI:
    57          movl    (%ecx), %eax
    58 Fetch32Resume:
    59          ret
    60 
    61 
    62         .globl  SpinPause
    63         .type   SpinPause,@function
    64         .p2align 4,,15
    65 SpinPause:
    66         rep
    67         nop
    68         movl    $1, %eax
    69         ret
    7047
    7148        # Support for void Copy::conjoint_bytes(void* from,
     
    7350        #                                       size_t count)
    7451        .p2align 4,,15
    75         .type    _Copy_conjoint_bytes,@function
    76 _Copy_conjoint_bytes:
     52        .type    __Copy_conjoint_bytes,@function
     53__Copy_conjoint_bytes:
    7754        pushl    %esi
    7855        movl     4+12(%esp),%ecx      # count
     
    179156        #                                               size_t count)
    180157        #
    181         # Same as _Copy_conjoint_bytes, except no source alignment check.
    182         .p2align 4,,15
    183         .type    _Copy_arrayof_conjoint_bytes,@function
    184 _Copy_arrayof_conjoint_bytes:
     158        # Same as __Copy_conjoint_bytes, except no source alignment check.
     159        .p2align 4,,15
     160        .type    __Copy_arrayof_conjoint_bytes,@function
     161__Copy_arrayof_conjoint_bytes:
    185162        pushl    %esi
    186163        movl     4+12(%esp),%ecx      # count
     
    269246        #                                                size_t count)
    270247        .p2align 4,,15
    271         .type    _Copy_conjoint_jshorts_atomic,@function
    272 _Copy_conjoint_jshorts_atomic:
     248        .type    __Copy_conjoint_jshorts_atomic,@function
     249__Copy_conjoint_jshorts_atomic:
    273250        pushl    %esi
    274251        movl     4+12(%esp),%ecx      # count
     
    355332        #                                                 size_t count)
    356333        .p2align 4,,15
    357         .type    _Copy_arrayof_conjoint_jshorts,@function
    358 _Copy_arrayof_conjoint_jshorts:
     334        .type    __Copy_arrayof_conjoint_jshorts,@function
     335__Copy_arrayof_conjoint_jshorts:
    359336        pushl    %esi
    360337        movl     4+12(%esp),%ecx      # count
     
    432409        #   arrayof_conjoint_jints
    433410        .p2align 4,,15
    434         .type    _Copy_conjoint_jints_atomic,@function
    435         .type    _Copy_arrayof_conjoint_jints,@function
    436 _Copy_conjoint_jints_atomic:
    437 _Copy_arrayof_conjoint_jints:
     411        .type    __Copy_conjoint_jints_atomic,@function
     412        .type    __Copy_arrayof_conjoint_jints,@function
     413__Copy_conjoint_jints_atomic:
     414__Copy_arrayof_conjoint_jints:
    438415        pushl    %esi
    439416        movl     4+12(%esp),%ecx      # count
     
    505482        # }
    506483        .p2align 4,,15
    507         .type    _Copy_conjoint_jlongs_atomic,@function
    508 _Copy_conjoint_jlongs_atomic:
     484        .type    __Copy_conjoint_jlongs_atomic,@function
     485__Copy_conjoint_jlongs_atomic:
    509486        movl     4+8(%esp),%ecx       # count
    510487        movl     4+0(%esp),%eax       # from
     
    534511        #                                                 size_t count)
    535512        .p2align 4,,15
    536         .type    _mmx_Copy_arrayof_conjoint_jshorts,@function
    537 _mmx_Copy_arrayof_conjoint_jshorts:
     513        .type    __mmx_Copy_arrayof_conjoint_jshorts,@function
     514__mmx_Copy_arrayof_conjoint_jshorts:
    538515        pushl    %esi
    539516        movl     4+12(%esp),%ecx
     
    633610        #
    634611        .p2align 4,,15
    635         .type    _Atomic_cmpxchg_long,@function
    636 _Atomic_cmpxchg_long:
     612        .type    __Atomic_cmpxchg_long,@function
     613__Atomic_cmpxchg_long:
    637614                                   #  8(%esp) : return PC
    638615        pushl    %ebx              #  4(%esp) : old %ebx
Note: See TracChangeset for help on using the changeset viewer.