From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
qemu-arm@nongnu.org, qemu-block@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH v2 1/5] util/cacheflush: Use declarations from <OSCacheControl.h> on Darwin
Date: Mon, 5 Jun 2023 19:56:43 +0200 [thread overview]
Message-ID: <20230605175647.88395-2-philmd@linaro.org> (raw)
In-Reply-To: <20230605175647.88395-1-philmd@linaro.org>
Per the cache(3) man page, sys_icache_invalidate() and
sys_dcache_flush() are declared in <libkern/OSCacheControl.h>.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
util/cacheflush.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/cacheflush.c b/util/cacheflush.c
index 06c2333a60..de35616718 100644
--- a/util/cacheflush.c
+++ b/util/cacheflush.c
@@ -237,8 +237,8 @@ static void __attribute__((constructor)) init_cache_info(void)
#ifdef CONFIG_DARWIN
/* Apple does not expose CTR_EL0, so we must use system interfaces. */
-extern void sys_icache_invalidate(void *start, size_t len);
-extern void sys_dcache_flush(void *start, size_t len);
+#include <libkern/OSCacheControl.h>
+
void flush_idcache_range(uintptr_t rx, uintptr_t rw, size_t len)
{
sys_dcache_flush((void *)rw, len);
--
2.38.1
next prev parent reply other threads:[~2023-06-05 17:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 17:56 [PATCH v2 0/5] bulk: Do not declare function prototypes using 'extern' keyword Philippe Mathieu-Daudé
2023-06-05 17:56 ` Philippe Mathieu-Daudé [this message]
2023-06-05 19:19 ` [PATCH v2 1/5] util/cacheflush: Use declarations from <OSCacheControl.h> on Darwin Richard Henderson
2023-06-05 17:56 ` [PATCH v2 2/5] tcg/tcg-op-vec: Remove left over _link_error() definitions Philippe Mathieu-Daudé
2023-06-05 19:20 ` Richard Henderson
2023-06-05 17:56 ` [PATCH v2 3/5] qemu/uri: Use QueryParams type definition Philippe Mathieu-Daudé
2023-06-06 9:22 ` Peter Maydell
2023-06-05 17:56 ` [PATCH v2 4/5] bulk: Do not declare function prototypes using 'extern' keyword Philippe Mathieu-Daudé
2023-06-06 9:25 ` Peter Maydell
2023-06-05 17:56 ` [PATCH v2 5/5] bulk: Replace __attribute__((noreturn)) -> G_NORETURN Philippe Mathieu-Daudé
2023-06-05 19:30 ` Richard Henderson
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=20230605175647.88395-2-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).