diff options
author | Steve McIntyre <steve@einval.com> | 2023-01-22 13:05:10 +0000 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2023-01-22 13:05:10 +0000 |
commit | 2dd2f7600d41253fe621b8d040ab57f0c202d71b (patch) | |
tree | 603ffd3c05d9935fd879bb073f6d3edc672139cf /include/compiler.h | |
parent | e6ace38abd705fbe24349152b7c90d473404e86e (diff) | |
download | efi-boot-shim-upstream/15.7.tar.gz efi-boot-shim-upstream/15.7.zip |
New upstream version 15.7upstream/15.7
Diffstat (limited to 'include/compiler.h')
-rw-r--r-- | include/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h index b4bf1031..b0d595f3 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -192,5 +192,11 @@ */ #define unreachable() __builtin_unreachable() +#if defined(__GNUC__) +#define cache_invalidate(begin, end) __builtin___clear_cache(begin, end) +#else /* __GNUC__ */ +#error shim has no cache_invalidate() implementation for this compiler +#endif /* __GNUC__ */ + #endif /* !COMPILER_H_ */ // vim:fenc=utf-8:tw=75:et |