VirtualBox

Ignore:
Timestamp:
Oct 28, 2018 5:00:27 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Make Watcom C an alterntive for compiling the OS/2 kernel code (GA mainly), governed by VBOX_USE_WATCOM_FOR_OS2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strncpy.asm

    r69219 r75129  
    3030
    3131;;
    32 ; @param    pszDst   gcc: rdi  msc: rcx  x86:[esp+4]
    33 ; @param    pszSrc   gcc: rsi  msc: rdx  x86:[esp+8]
    34 ; @param    cbMax    gcc: rdx  msc: r8   x86:[esp+12]
     32; @param    pszDst   gcc: rdi  msc: rcx  x86:[esp+4]   wcall: eax
     33; @param    pszSrc   gcc: rsi  msc: rdx  x86:[esp+8]   wcall: edx
     34; @param    cbMax    gcc: rdx  msc: r8   x86:[esp+12]  wcall: ebx
    3535RT_NOCRT_BEGINPROC strncpy
    3636        ; input
     
    4747        mov     r9, pszDst
    4848%else
     49 %ifdef ASM_CALL32_WATCOM
     50  mov   ecx, eax
     51  %define pszDst ecx
     52  %define pszSrc edx
     53  %define cbMax  ebx
     54 %else
    4955        mov     ecx, [esp + 4]
    5056        mov     edx, [esp + 8]
     
    5460  %define pszSrc edx
    5561  %define cbMax  ebx
     62 %endif
    5663        push    pszDst
    5764%endif
     
    113120        mov     rax, r9
    114121%else
     122 %ifndef ASM_CALL32_WATCOM
    115123        pop     ebx
     124 %endif
    116125        pop     eax
    117126%endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette