libmetal/add-riscv-support.patch
2023-09-28 22:05:24 +08:00

58 lines
2.0 KiB
Diff

diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt
--- libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt 2022-10-28 10:12:23.000000000 +0800
+++ libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
@@ -1,3 +0,0 @@
-collect (PROJECT_LIB_HEADERS cpu.h)
-
-# vim: expandtab:ts=2:sw=2:smartindent
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv/cpu.h libmetal-2022.10.0/lib/processor/riscv/cpu.h
--- libmetal-2022.10.0/lib/processor/riscv/cpu.h 2022-10-28 10:12:23.000000000 +0800
+++ libmetal-2022.10.0/lib/processor/riscv/cpu.h 1970-01-01 08:00:00.000000000 +0800
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/*
- * @file cpu.h
- * @brief CPU specific primitives
- */
-
-#ifndef __METAL_RISCV_CPU__H__
-#define __METAL_RISCV_CPU__H__
-
-#define metal_cpu_yield()
-
-#endif /* __METAL_RISCV_CPU__H__ */
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt
--- libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
+++ libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt 2023-06-20 17:21:21.507556947 +0800
@@ -0,0 +1,3 @@
+collect (PROJECT_LIB_HEADERS cpu.h)
+
+# vim: expandtab:ts=2:sw=2:smartindent
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv64/cpu.h libmetal-2022.10.0/lib/processor/riscv64/cpu.h
--- libmetal-2022.10.0/lib/processor/riscv64/cpu.h 1970-01-01 08:00:00.000000000 +0800
+++ libmetal-2022.10.0/lib/processor/riscv64/cpu.h 2023-06-20 17:21:21.507556947 +0800
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/*
+ * @file cpu.h
+ * @brief CPU specific primitives
+ */
+
+#ifndef __METAL_RISCV_CPU__H__
+#define __METAL_RISCV_CPU__H__
+
+#define metal_cpu_yield()
+
+#endif /* __METAL_RISCV_CPU__H__ */