Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 Improve a comment
details: https://anonhg.NetBSD.org/src/rev/af2762617ccd
branches: trunk
changeset: 940020:af2762617ccd
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Sep 30 16:47:55 2020 +0000
description:
Improve a comment
diffstat:
sys/arch/aarch64/aarch64/aarch64_machdep.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r b0ca967f97e1 -r af2762617ccd sys/arch/aarch64/aarch64/aarch64_machdep.c
--- a/sys/arch/aarch64/aarch64/aarch64_machdep.c Wed Sep 30 16:35:49 2020 +0000
+++ b/sys/arch/aarch64/aarch64/aarch64_machdep.c Wed Sep 30 16:47:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aarch64_machdep.c,v 1.48 2020/09/16 18:26:15 skrll Exp $ */
+/* $NetBSD: aarch64_machdep.c,v 1.49 2020/09/30 16:47:55 skrll Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.48 2020/09/16 18:26:15 skrll Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.49 2020/09/30 16:47:55 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_cpuoptions.h"
@@ -251,11 +251,10 @@
#ifdef MODULAR
/*
- * aarch64 compiler (gcc & llvm) uses R_AARCH_CALL26/R_AARCH_JUMP26
- * for function calling/jumping.
- * (at this time, both compilers doesn't support -mlong-calls)
- * therefore kernel modules should be loaded within maximum 26bit word,
- * or +-128MB from kernel.
+ * The aarch64 compilers (gcc & llvm) use R_AARCH_CALL26/R_AARCH_JUMP26
+ * for function calls (bl)/jumps(b). At this time, neither compiler
+ * supports -mlong-calls therefore the kernel modules should be loaded
+ * within the maximum range of +/-128MB from kernel text.
*/
#define MODULE_RESERVED_MAX (1024 * 1024 * 128)
#define MODULE_RESERVED_SIZE (1024 * 1024 * 32) /* good enough? */
Home |
Main Index |
Thread Index |
Old Index