VirtualBox

Ignore:
Timestamp:
Dec 13, 2013 12:40:20 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91271
Message:

MSR rewrite: initial hacking - half disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMRC/VMMRCA.asm

    r49362 r49893  
    235235    pushf
    236236    cli
     237    push    esi
     238    push    edi
     239    push    ebx
     240    push    ebp
    237241
    238242    mov     ecx, [ebp + 8]              ; The MSR to read.
     
    247251    mov     [ecx + 4], edx
    248252
     253    mov     eax, 1
     254.return:
     255    pop     ebp
     256    pop     ebx
     257    pop     edi
     258    pop     esi
    249259    popf
    250     mov     eax, 1
    251260    leave
    252261    ret
    253262
    254263.trapped:
    255     popf
    256264    mov     eax, 0
    257     leave
    258     ret
     265    jmp     .return
    259266ENDPROC vmmRCSafeMsrRead
    260267
     
    271278    pushf
    272279    cli
     280    push    esi
     281    push    edi
     282    push    ebx
     283    push    ebp
    273284
    274285    mov     ecx, [ebp + 8]              ; The MSR to write to.
     
    279290    wrmsr
    280291
     292    mov     eax, 1
     293.return:
     294    pop     ebp
     295    pop     ebx
     296    pop     edi
     297    pop     esi
    281298    popf
    282     mov     eax, 1
    283299    leave
    284300    ret
    285301
    286302.trapped:
    287     popf
    288303    mov     eax, 0
    289     leave
    290     ret
     304    jmp     .return
    291305ENDPROC vmmRCSafeMsrWrite
    292306
Note: See TracChangeset for help on using the changeset viewer.

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