From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Cc: sjg@chromium.org, trini@konsulko.com
Subject: [PATCH v1 3/5] arm64: cache_v8: Use memset_simple() in create_table()
Date: Fri, 6 Aug 2021 15:38:41 +0200 [thread overview]
Message-ID: <20210806133843.3642916-4-sr@denx.de> (raw)
In-Reply-To: <20210806133843.3642916-1-sr@denx.de>
create_table() is called very early in the boot process, before the
caches are enabled. Because of this, the optimized memset() version
can't be used here. With this patch, the simple memset version
memset_simple() is used here instead.
Signed-off-by: Stefan Roese <sr@denx.de>
---
arch/arm/cpu/armv8/cache_v8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c
index 3de18c7675b9..04c437aebabf 100644
--- a/arch/arm/cpu/armv8/cache_v8.c
+++ b/arch/arm/cpu/armv8/cache_v8.c
@@ -159,7 +159,7 @@ static u64 *create_table(void)
gd->arch.tlb_size);
/* Mark all entries as invalid */
- memset(new_table, 0, pt_len);
+ memset_simple(new_table, 0, pt_len);
return new_table;
}
--
2.32.0
next prev parent reply other threads:[~2021-08-06 13:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 13:38 [PATCH v1 0/5] arm64: Add optimized memset/memcpy functions Stefan Roese
2021-08-06 13:38 ` [PATCH v1 1/5] lib/string: Add memset_simple() Stefan Roese
2021-08-06 15:36 ` Wolfgang Denk
2021-08-06 16:13 ` Heinrich Schuchardt
2021-08-07 15:18 ` Wolfgang Denk
2021-08-07 15:34 ` Tom Rini
2021-08-06 13:38 ` [PATCH v1 2/5] board_init: Use memset_simple() in board_init_f_init_reserve() Stefan Roese
2021-08-09 7:52 ` Rasmus Villemoes
2021-08-09 13:17 ` Stefan Roese
2021-08-06 13:38 ` Stefan Roese [this message]
2021-08-06 13:38 ` [PATCH v1 4/5] arm64: arch/arm/lib: Add optimized memset/memcpy functions Stefan Roese
2021-08-06 14:43 ` Tom Rini
2021-08-06 14:45 ` Stefan Roese
2021-08-06 15:41 ` Wolfgang Denk
2021-08-06 13:38 ` [PATCH v1 5/5] arm64: Kconfig: Enable usage of optimized memset/memcpy Stefan Roese
2021-08-06 14:24 ` [PATCH v1 0/5] arm64: Add optimized memset/memcpy functions Tom Rini
2021-08-06 14:44 ` Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210806133843.3642916-4-sr@denx.de \
--to=sr@denx.de \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox