summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/numa.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-09-28 10:27:45 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-09-28 10:27:45 -0700
commit5d959343ae487157a2ef2993794e1359a82a5b15 (patch)
tree69e3eef4288a12d33250579c1cf5833ce9797fdd /arch/loongarch/kernel/numa.c
parent52a6d9b53ea1dd0d20a65532dfb0ab02b1cb452c (diff)
parentb1dc55a3d6a86cc2c1ae664ad7280bff4c0fc28f (diff)
downloadlinux-5d959343ae487157a2ef2993794e1359a82a5b15.tar.gz
linux-5d959343ae487157a2ef2993794e1359a82a5b15.tar.bz2
linux-5d959343ae487157a2ef2993794e1359a82a5b15.zip
Merge tag 'loongarch-fixes-6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
Pull LoongArch fixes from Huacai Chen: "Fix high_memory calculation and module loader errors with latest binutils" * tag 'loongarch-fixes-6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson: LoongArch: Add support for 64_PCREL relocation type LoongArch: Add support for 32_PCREL relocation type LoongArch: Define relocation types for ABI v2.10 LoongArch: numa: Fix high_memory calculation
Diffstat (limited to 'arch/loongarch/kernel/numa.c')
-rw-r--r--arch/loongarch/kernel/numa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/numa.c b/arch/loongarch/kernel/numa.c
index c7d33c489e04..6e65ff12d5c7 100644
--- a/arch/loongarch/kernel/numa.c
+++ b/arch/loongarch/kernel/numa.c
@@ -436,7 +436,7 @@ void __init paging_init(void)
void __init mem_init(void)
{
- high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
+ high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT);
memblock_free_all();
}