代码拉取完成,页面将自动刷新
From 5b522779b6c85a7e0daad63ef1134d2d0e2719eb Mon Sep 17 00:00:00 2001
From: doupengda <doupengda@loongson.cn>
Date: Tue, 28 May 2024 03:16:22 +0000
Subject: [PATCH] kmod-kvdo 8.2.3.3 add support for loongarch64
---
source/vdo/cpu.h | 2 +-
source/vdo/volume.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/source/vdo/cpu.h b/source/vdo/cpu.h
index e4b39c2..9a4f1f2 100644
--- a/source/vdo/cpu.h
+++ b/source/vdo/cpu.h
@@ -20,7 +20,7 @@
#define CACHE_LINE_BYTES 128
#elif defined(__s390x__)
#define CACHE_LINE_BYTES 256
-#elif defined(__x86_64__) || defined(__aarch64__)
+#elif defined(__x86_64__) || defined(__aarch64__) || defined(__loongarch64)
#define CACHE_LINE_BYTES 64
#else
#error "unknown cache line size"
diff --git a/source/vdo/volume.h b/source/vdo/volume.h
index 3a9a8d5..ea12a65 100644
--- a/source/vdo/volume.h
+++ b/source/vdo/volume.h
@@ -356,6 +356,9 @@ int __must_check get_volume_page(struct volume *volume,
byte **data_ptr,
struct delta_index_page **index_page_ptr);
+#if defined(__loongarch64)
+#define get_cache_size get_cache_size_alias
+#endif
size_t __must_check get_cache_size(struct volume *volume);
int __must_check
--
2.41.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。