diff options
Diffstat (limited to 'testing/linux-amlogic/text_offset.patch')
-rw-r--r-- | testing/linux-amlogic/text_offset.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/linux-amlogic/text_offset.patch b/testing/linux-amlogic/text_offset.patch new file mode 100644 index 0000000000..fff476e656 --- /dev/null +++ b/testing/linux-amlogic/text_offset.patch @@ -0,0 +1,26 @@ +diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile +index 106039d..651d990 100644 +--- a/arch/arm64/Makefile ++++ b/arch/arm64/Makefile +@@ -88,7 +88,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)) +diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S +index b085306..68edc91 100644 +--- a/arch/arm64/kernel/head.S ++++ b/arch/arm64/kernel/head.S +@@ -51,7 +51,7 @@ + #elif (PAGE_OFFSET & 0x1fffff) != 0 + #error PAGE_OFFSET must be at least 2MB aligned + #elif TEXT_OFFSET > 0x1fffff +-#error TEXT_OFFSET must be less than 2MB ++//#error TEXT_OFFSET must be less than 2MB + #endif + + /* |