VirtualBox

Ignore:
Timestamp:
Jan 29, 2017 5:32:33 PM (8 years ago)
Author:
vboxsync
Message:

bs3-cpu-instr-2: Simple cmpxchg16b testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-instr-2-template.mac

    r62455 r65507  
    8383BS3_PROC_END_CMN   bs3CpuInstr2_idiv_xBX_ud2
    8484
     85
     86 %if TMPL_BITS == 64
     87BS3_PROC_BEGIN_CMN bs3CpuInstr2_cmpxchg16b_rdi_ud2, BS3_PBC_NEAR
     88        cmpxchg16b [rdi]
     89.again:
     90        ud2
     91        jmp     .again
     92AssertCompile(.again - BS3_LAST_LABEL == 4)
     93BS3_PROC_END_CMN   bs3CpuInstr2_cmpxchg16b_rdi_ud2
     94
     95
     96BS3_PROC_BEGIN_CMN bs3CpuInstr2_lock_cmpxchg16b_rdi_ud2, BS3_PBC_NEAR
     97        lock cmpxchg16b [rdi]
     98.again:
     99        ud2
     100        jmp     .again
     101AssertCompile(.again - BS3_LAST_LABEL == 5)
     102BS3_PROC_END_CMN   bs3CpuInstr2_lock_cmpxchg16b_rdi_ud2
     103 %endif ; TMPL_BITS == 64
     104
     105
    85106%endif ; BS3_INSTANTIATING_CMN
    86107
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