vboxguestdrivers: Remove __divmoddi4 patch
PATCH 1/1 vboxguestdrivers: Remove __divmoddi4 patch
This function has been added upstream as well, therefore the patch is no longer needed
Signed-off-by Khem Raj <[email protected]>
Cc Gianfranco Costamagna <[email protected]>
--- .../vboxguestdrivers/add__divmoddi4.patch | 36 ------------------- .../vboxguestdrivers_6.1.26.bb | 1 - 2 files changed, 37 deletions(-) delete mode 100644 meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/add__divmoddi4.patch
meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/add__divmoddi4.patch deleted +0 -36
@@ -1,36 +0,0 @@ -add __divmoddi4 builtin - -GCC 11 will generate it in code - -void foo(unsigned char *u8Second, unsigned int *u32Nanosecond, long long timeSpec) -{ - long long i64Div; - int i32Div; - int i32Rem; - i64Div = timeSpec; - i32Rem = (int)(i64Div % 1000000000); - i64Div /= 1000000000; - *u32Nanosecond = i32Rem; - i32Rem = (int)(i64Div % 60); - *u8Second = i32Rem; -} - - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> - ---- a/src/VBox/Runtime/common/math/gcc/divdi3.c -+++ b/src/VBox/Runtime/common/math/gcc/divdi3.c -@@ -68,3 +68,12 @@ __divdi3(a, b) - uq = - uq; - return uq; - } -+ -+quad_t -+__divmoddi4(quad_t a, quad_t b, quad_t* rem) -+{ -+ quad_t d = __divdi3(a,b); -+ *rem = a - (d*b); -+ return d; -+} -+
meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_6.1.26.bb +0 -1
@@ -13,7 +13,6 @@ VBOX_NAME = "VirtualBox-${PV}" SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/${VBOX_NAME}.tar.bz2 \ file://Makefile.utils \ - file://add__divmoddi4.patch \ " SRC_URI[md5sum] = "fce04bbef244b4df1a50e53d132d3e6f"
--
2.32.0