genode/repos/dde_linux/patches/legacy_lxip_checksum_32.patch
Sebastian Sumpf 4a7a4cfac5 dde_linux: move linux.port to legacy_linux.port
This is prerequisite for the Linux update. All dependencies relying on
the 'linux' have been adjusted to use 'legacy_linux'.

Issue #5264
2024-08-27 15:33:31 +02:00

31 lines
957 B
Diff

CONFIG_X86_USE_PPRO_CHECKSUM is a 'def_bool y' and gets re-enabled by
'make olddefconfig'. The PPRO version contains text relocations which we cannot
have in binaries (e.g., 'lea 45f(%ebx ...).').
diff --git a/arch/x86/lib/checksum_32.S b/arch/x86/lib/checksum_32.S
index 23318c3..0eba848 100644
--- a/arch/x86/lib/checksum_32.S
+++ b/arch/x86/lib/checksum_32.S
@@ -36,8 +36,9 @@ unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum)
*/
.text
-
-#ifndef CONFIG_X86_USE_PPRO_CHECKSUM
+
+/* use version without text relocations */
+#if 1
/*
* Experiments with Ethernet and SLIP connections show that buff
@@ -264,7 +265,8 @@ unsigned int csum_partial_copy_generic (const char *src, char *dst,
9999: y; \
_ASM_EXTABLE_TYPE(9999b, 7f, EX_TYPE_UACCESS | EX_FLAG_CLEAR_AX)
-#ifndef CONFIG_X86_USE_PPRO_CHECKSUM
+/* use version without text relocations */
+#if 1
#define ARGBASE 16
#define FP 12