VirtualBox

Changeset 18139 in vbox for trunk/src


Ignore:
Timestamp:
Mar 23, 2009 2:03:59 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: don't trash eax/rax in export stubs

Location:
trunk/src/VBox/Additions/common/crOpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/Linux_i386_exports.py

    r16381 r18139  
    3434
    3535        print "BEGINPROC_EXPORTED gl%s" % func_name
    36         print "%ifdef RT_ARCH_AMD64"
    37         print "\tmov \trax, qword glim+%d" % (8*index)
    38         print "\tjmp \t[rax]"
    39         print "%else ; X86"
    40         print "\tmov \teax, dword glim+%d" % (4*index)
    41         print "\tjmp \t[eax]"
    42         print "%endif"
     36        print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
    4337        print "ENDPROC gl%s" % func_name
    4438        print ""
     
    6559            index = keys.index(alias)
    6660            print "BEGINPROC_EXPORTED gl%s" % func_name
    67             print "%ifdef RT_ARCH_AMD64"
    68             print "\tmov \trax, qword glim+%d" % (8*index)
    69             print "\tjmp \t[rax]"
    70             print "%else ; X86"
    71             print "\tmov \teax, dword glim+%d" % (4*index)
    72             print "\tjmp \t[eax]"
    73             print "%endif"
     61            print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
    7462            print "ENDPROC gl%s" % func_name
    7563            print ""
  • trunk/src/VBox/Additions/common/crOpenGL/windows_i386_exports.py

    r15532 r18139  
    3434                print "BEGINPROC_EXPORTED cr_gl%s" % func_name
    3535                print "%ifdef RT_ARCH_AMD64"
    36                 print "\tmov \trax, qword glim+%d" % (8*index)
    37                 print "\tjmp \t[rax]"
     36        print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
    3837                print "%else ; X86"
    39                 print "\tmov \teax, dword _glim+%d" % (4*index)
    40                 print "\tjmp \t[eax]"
     38        print "\tjmp \t[RTHCPTR_PRE _glim + RTHCPTR_CB*%d]" % index
    4139                print "%endif"
    4240                print "ENDPROC cr_gl%s" % func_name
     
    6462                        index = keys.index(alias)
    6563                        print "BEGINPROC_EXPORTED cr_gl%s" % func_name
    66                         print "%ifdef RT_ARCH_AMD64"
    67                         print "\tmov \trax, qword glim+%d" % (8*index)
    68                         print "\tjmp \t[rax]"
     64            print "\tjmp \t[RTHCPTR_PRE glim + RTHCPTR_CB*%d]" % index
    6965                        print "%else ; X86"
    70                         print "\tmov \teax, dword _glim+%d" % (4*index)
    71                         print "\tjmp \t[eax]"
     66            print "\tjmp \t[RTHCPTR_PRE _glim + RTHCPTR_CB*%d]" % index
    7267                        print "%endif"
    7368                        print "ENDPROC cr_gl%s" % func_name
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