This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
static int init_mrs(void) { | |
u64 mmfr0_el1; | |
printk(KERN_INFO "MRS_TEST module initialized.\n"); | |
asm("mrs %0, id_aa64mmfr0_el1" : "=r" (mmfr0_el1)); | |
printk("ID_AA64MMFR0_EL1: 0x%016llx\n", mmfr0_el1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile | |
index 106039d25e2f..651d9908c8a4 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 |