aboutsummaryrefslogtreecommitdiffstats
path: root/testing/linux-amlogic/offset.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/linux-amlogic/offset.patch')
-rw-r--r--testing/linux-amlogic/offset.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/linux-amlogic/offset.patch b/testing/linux-amlogic/offset.patch
new file mode 100644
index 0000000000..644b65ee4a
--- /dev/null
+++ b/testing/linux-amlogic/offset.patch
@@ -0,0 +1,13 @@
+diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
+index e7101b1..deabd29 100644
+--- a/arch/arm64/Makefile
++++ b/arch/arm64/Makefile
+@@ -87,7 +87,7 @@ TEXT_OFFSET := $(shell awk "BEGIN {srand(); printf \"0x%06x\n\", \
+ int(2 * 1024 * 1024 / (2 ^ $(CONFIG_ARM64_PAGE_SHIFT)) * \
+ rand()) * (2 ^ $(CONFIG_ARM64_PAGE_SHIFT))}")
+ else
+-TEXT_OFFSET := 0x00080000
++TEXT_OFFSET := 0x01080000
+ endif
+
+ # KASAN_SHADOW_OFFSET = VA_START + (1 << (VA_BITS - KASAN_SHADOW_SCALE_SHIFT))