VirtualBox

Changeset 66874 in vbox


Ignore:
Timestamp:
May 11, 2017 4:40:25 PM (8 years ago)
Author:
vboxsync
Message:

bs3-mode-EnteredMode.asm: Always save&restore xCX and xDX too as we're calling C code, 16-bit must do xBX too as it's volatile in cdecl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-EnteredMode.asm

    r60676 r66874  
    55
    66;
    7 ; Copyright (C) 2007-2016 Oracle Corporation
     7; Copyright (C) 2007-2017 Oracle Corporation
    88;
    99; This file is part of VirtualBox Open Source Edition (OSE), as
     
    4444        mov     xBP, xSP
    4545        push    xAX
     46        push    xCX
     47        push    xDX
     48TONLY16 push    xBX
    4649%if BS3_MODE_IS_64BIT_CODE(TMPL_MODE)
    47         push    rcx
    48         push    rdx
    4950        push    r8
    5051        push    r9
     
    252253        pop     r9
    253254        pop     r8
    254         pop     rdx
    255         pop     rcx
    256 %endif
     255%endif
     256TONLY16 pop     xBX
     257        pop     xDX
     258        pop     xCX
    257259        pop     xAX
    258260%ifdef BS3_STRICT
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