- Old VirtualBox OSE 5.2.44 preserved as "-legacy" versions of the ports (repocopied) - Add back extra patch removed in r528258, actually required to build DEBUG kmod - Correctly define WITH_DEBUG when enabling the DEBUG option, so binaries are not stripped Please note that this new version supports only amd64 CPUs. If you need to use older hardware please install the legacy ports. Note that moving VM snapshots across major updates is unsupported, it's strongly suggested to properly shutdown VMs before upgrading, please check UPDATING for further details. This update is the result of work from many people, and thanks to all who gave feedback and tested things. Patch based on work from: Mario Lobo <lobo@bsd.com.br> and jkim. PR: 234878 Submitted by: kunda <chitty_cloud@me.com> Approved by: vbox (implicit) Reviewed by: decke Tested by: jwb, martin ilavsky <ilavsky.martin@gmail.com>, Mario Lobo <lobo@bsd.com.br> Relnotes: https://www.virtualbox.org/wiki/Changelog-6.1 Differential Revision: https://reviews.freebsd.org/D28871
98 lines
2.8 KiB
Python
98 lines
2.8 KiB
Python
--- src/VBox/Additions/common/crOpenGL/FreeBSD_i386_exports.py.orig 2020-06-26 09:52:40 UTC
|
|
+++ src/VBox/Additions/common/crOpenGL/FreeBSD_i386_exports.py
|
|
@@ -0,0 +1,95 @@
|
|
+# Copyright (c) 2001, Stanford University
|
|
+# All rights reserved.
|
|
+#
|
|
+# See the file LICENSE.txt for information on redistributing this software.
|
|
+
|
|
+
|
|
+import sys
|
|
+
|
|
+import apiutil
|
|
+
|
|
+
|
|
+def GenerateEntrypoints():
|
|
+
|
|
+ #apiutil.CopyrightC()
|
|
+
|
|
+ # Get sorted list of dispatched functions.
|
|
+ # The order is very important - it must match cr_opcodes.h
|
|
+ # and spu_dispatch_table.h
|
|
+ print '%include "iprt/asmdefs.mac"'
|
|
+ print ""
|
|
+ print "%ifdef RT_ARCH_AMD64"
|
|
+ print "extern glim"
|
|
+ print "%else ; X86"
|
|
+ print "extern glim"
|
|
+ print "%endif"
|
|
+ print ""
|
|
+
|
|
+ keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
|
+
|
|
+ for index in range(len(keys)):
|
|
+ func_name = keys[index]
|
|
+ if apiutil.Category(func_name) == "Chromium":
|
|
+ continue
|
|
+ if apiutil.Category(func_name) == "VBox":
|
|
+ continue
|
|
+
|
|
+ print "BEGINPROC_EXPORTED gl%s" % func_name
|
|
+ print "%ifdef RT_ARCH_AMD64"
|
|
+ print "\tmov \trax, qword glim+%d" % (8*index)
|
|
+ print "\tjmp \t[rax]"
|
|
+ print "%else ; X86"
|
|
+ print "\tmov \teax, dword glim+%d" % (4*index)
|
|
+ print "\tjmp \t[eax]"
|
|
+ print "%endif"
|
|
+ print "ENDPROC gl%s" % func_name
|
|
+ print ""
|
|
+
|
|
+
|
|
+ print ';'
|
|
+ print '; Aliases'
|
|
+ print ';'
|
|
+
|
|
+ # Now loop over all the functions and take care of any aliases
|
|
+ allkeys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
|
|
+ for func_name in allkeys:
|
|
+ if "omit" in apiutil.ChromiumProps(func_name):
|
|
+ continue
|
|
+
|
|
+ if func_name in keys:
|
|
+ # we already processed this function earlier
|
|
+ continue
|
|
+
|
|
+ # alias is the function we're aliasing
|
|
+ alias = apiutil.Alias(func_name)
|
|
+ if alias:
|
|
+ # this dict lookup should never fail (raise an exception)!
|
|
+ index = keys.index(alias)
|
|
+ print "BEGINPROC_EXPORTED gl%s" % func_name
|
|
+ print "%ifdef RT_ARCH_AMD64"
|
|
+ print "\tmov \trax, qword glim+%d" % (8*index)
|
|
+ print "\tjmp \t[rax]"
|
|
+ print "%else ; X86"
|
|
+ print "\tmov \teax, dword glim+%d" % (4*index)
|
|
+ print "\tjmp \t[eax]"
|
|
+ print "%endif"
|
|
+ print "ENDPROC gl%s" % func_name
|
|
+ print ""
|
|
+
|
|
+
|
|
+ print ';'
|
|
+ print '; No-op stubs'
|
|
+ print ';'
|
|
+
|
|
+ # Now generate no-op stub functions
|
|
+ for func_name in allkeys:
|
|
+ if "stub" in apiutil.ChromiumProps(func_name):
|
|
+ print "BEGINPROC_EXPORTED gl%s" % func_name
|
|
+ print "\tleave"
|
|
+ print "\tret"
|
|
+ print "ENDPROC gl%s" % func_name
|
|
+ print ""
|
|
+
|
|
+
|
|
+GenerateEntrypoints()
|
|
+
|