@micro-os-plus/architecture-riscv 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -1
- package/CMakeLists.txt +4 -2
- package/include/micro-os-plus/architecture-riscv/defines.h +3 -3
- package/include/micro-os-plus/architecture-riscv/functions.h +35 -0
- package/include/micro-os-plus/architecture-riscv/inlines/semihosting-inlines.h +5 -0
- package/include/micro-os-plus/architecture-riscv/instructions.h +3 -3
- package/include/micro-os-plus/architecture.h +6 -0
- package/meson.build +2 -1
- package/package.json +1 -1
- package/src/show-cpuid.cpp +28 -0
- package/xcdl-package.jsonc +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,9 +6,29 @@ Please check
|
|
|
6
6
|
[GitHub](https://github.com/micro-os-plus/architecture-riscv-xpack/issues/)
|
|
7
7
|
and close existing issues and pull requests.
|
|
8
8
|
|
|
9
|
+
## 2026-09-09
|
|
10
|
+
|
|
11
|
+
* v5.1.0
|
|
12
|
+
* b3d5140 re-format
|
|
13
|
+
|
|
14
|
+
## 2026-09-08
|
|
15
|
+
|
|
16
|
+
* 0150285 architecture.h __ASSEMBLY__
|
|
17
|
+
* cadd9d4 add micro_os_plus_semihosting_register_t
|
|
18
|
+
|
|
19
|
+
## 2026-09-07
|
|
20
|
+
|
|
21
|
+
* bf22010 cosmetics xpm packages
|
|
22
|
+
* 7b75d63 add show-cpuid
|
|
23
|
+
|
|
24
|
+
## 2026-08-05
|
|
25
|
+
|
|
26
|
+
* 19ddea8 readme cosmetics
|
|
27
|
+
|
|
9
28
|
## 2026-08-04
|
|
10
29
|
|
|
11
|
-
*
|
|
30
|
+
* 8052bbb 5.0.0
|
|
31
|
+
* c3a6757 prepare v5.0.0
|
|
12
32
|
* f8176c2 re-generate top commons
|
|
13
33
|
|
|
14
34
|
## 2026-07-31
|
package/CMakeLists.txt
CHANGED
|
@@ -40,8 +40,9 @@ if (COMMAND xpack_get_package_name_and_version)
|
|
|
40
40
|
xpack_get_package_name_and_version (
|
|
41
41
|
"${CMAKE_CURRENT_SOURCE_DIR}/package.json"
|
|
42
42
|
)
|
|
43
|
-
message (
|
|
44
|
-
|
|
43
|
+
message (
|
|
44
|
+
VERBOSE
|
|
45
|
+
"Processing xpm package ${PACKAGE_JSON_NAME}@${PACKAGE_JSON_VERSION}..."
|
|
45
46
|
)
|
|
46
47
|
endif ()
|
|
47
48
|
|
|
@@ -73,6 +74,7 @@ target_include_directories (
|
|
|
73
74
|
|
|
74
75
|
target_sources (
|
|
75
76
|
micro-os-plus-architectures-riscv-interface INTERFACE "src/semihosting.cpp"
|
|
77
|
+
"src/show-cpuid.cpp"
|
|
76
78
|
)
|
|
77
79
|
|
|
78
80
|
if (COMMAND xpack_display_target_lists)
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* obtained from https://opensource.org/licenses/mit.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
#ifndef
|
|
13
|
-
#define
|
|
12
|
+
#ifndef MICRO_OS_PLUS_ARCHITECTURE_RISCV_DEFINES_H_
|
|
13
|
+
#define MICRO_OS_PLUS_ARCHITECTURE_RISCV_DEFINES_H_
|
|
14
14
|
|
|
15
15
|
// ----------------------------------------------------------------------------
|
|
16
16
|
|
|
@@ -179,6 +179,6 @@
|
|
|
179
179
|
|
|
180
180
|
// ----------------------------------------------------------------------------
|
|
181
181
|
|
|
182
|
-
#endif //
|
|
182
|
+
#endif // MICRO_OS_PLUS_ARCHITECTURE_RISCV_DEFINES_H_
|
|
183
183
|
|
|
184
184
|
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of the µOS++ project (https://micro-os-plus.github.io/).
|
|
3
|
+
* Copyright (c) 2017-2026 Liviu Ionescu. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
* purpose is hereby granted, under the terms of the MIT license.
|
|
7
|
+
*
|
|
8
|
+
* If a copy of the license was not distributed with this file, it can be
|
|
9
|
+
* obtained from https://opensource.org/licenses/mit.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#ifndef MICRO_OS_PLUS_ARCHITECTURE_RISCV_FUNCTIONS_H_
|
|
13
|
+
#define MICRO_OS_PLUS_ARCHITECTURE_RISCV_FUNCTIONS_H_
|
|
14
|
+
|
|
15
|
+
// ----------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
#include <stdint.h>
|
|
18
|
+
|
|
19
|
+
#if defined(__cplusplus)
|
|
20
|
+
extern "C"
|
|
21
|
+
{
|
|
22
|
+
#endif // defined(__cplusplus)
|
|
23
|
+
|
|
24
|
+
void
|
|
25
|
+
micro_os_plus_architecture_show_cpuid (void);
|
|
26
|
+
|
|
27
|
+
#if defined(__cplusplus)
|
|
28
|
+
}
|
|
29
|
+
#endif // defined(__cplusplus)
|
|
30
|
+
|
|
31
|
+
// ----------------------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
#endif // MICRO_OS_PLUS_ARCHITECTURE_RISCV_FUNCTIONS_H_
|
|
34
|
+
|
|
35
|
+
// ----------------------------------------------------------------------------
|
|
@@ -26,9 +26,14 @@ extern "C"
|
|
|
26
26
|
|
|
27
27
|
// --------------------------------------------------------------------------
|
|
28
28
|
|
|
29
|
+
// Type of each entry in structures.
|
|
30
|
+
typedef micro_os_plus_architecture_register_t
|
|
31
|
+
micro_os_plus_semihosting_register_t;
|
|
32
|
+
|
|
29
33
|
// Type of each entry in a parameter block.
|
|
30
34
|
typedef micro_os_plus_architecture_register_t
|
|
31
35
|
micro_os_plus_semihosting_param_block_t;
|
|
36
|
+
|
|
32
37
|
// Type of result.
|
|
33
38
|
typedef micro_os_plus_architecture_signed_register_t
|
|
34
39
|
micro_os_plus_semihosting_response_t;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* obtained from https://opensource.org/licenses/mit.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
#ifndef
|
|
13
|
-
#define
|
|
12
|
+
#ifndef MICRO_OS_PLUS_ARCHITECTURE_RISCV_INSTRUCTIONS_H_
|
|
13
|
+
#define MICRO_OS_PLUS_ARCHITECTURE_RISCV_INSTRUCTIONS_H_
|
|
14
14
|
|
|
15
15
|
// ----------------------------------------------------------------------------
|
|
16
16
|
|
|
@@ -152,6 +152,6 @@ namespace micro_os_plus
|
|
|
152
152
|
|
|
153
153
|
// ----------------------------------------------------------------------------
|
|
154
154
|
|
|
155
|
-
#endif //
|
|
155
|
+
#endif // MICRO_OS_PLUS_ARCHITECTURE_RISCV_INSTRUCTIONS_H_
|
|
156
156
|
|
|
157
157
|
// ----------------------------------------------------------------------------
|
|
@@ -36,7 +36,11 @@
|
|
|
36
36
|
// ----------------------------------------------------------------------------
|
|
37
37
|
|
|
38
38
|
#include "micro-os-plus/architecture-riscv/defines.h"
|
|
39
|
+
|
|
40
|
+
#if !defined(__ASSEMBLY__)
|
|
41
|
+
|
|
39
42
|
#include "micro-os-plus/architecture-riscv/types.h"
|
|
43
|
+
#include "micro-os-plus/architecture-riscv/functions.h"
|
|
40
44
|
#include "micro-os-plus/architecture-riscv/declarations.h"
|
|
41
45
|
#include "micro-os-plus/architecture-riscv/instructions.h"
|
|
42
46
|
#include "micro-os-plus/architecture-riscv/csr-functions.h"
|
|
@@ -44,6 +48,8 @@
|
|
|
44
48
|
|
|
45
49
|
#include "micro-os-plus/architecture-riscv/inlines/semihosting-inlines.h"
|
|
46
50
|
|
|
51
|
+
#endif // !defined(__ASSEMBLY__)
|
|
52
|
+
|
|
47
53
|
// ----------------------------------------------------------------------------
|
|
48
54
|
|
|
49
55
|
// #endif // defined(MICRO_OS_PLUS_INCLUDE_ARCHITECTURES_RISCV_ENABLED)
|
package/meson.build
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
# -----------------------------------------------------------------------------
|
|
28
28
|
|
|
29
29
|
# A source code library with the µOS++ RISC-V architecture port.
|
|
30
|
-
message('Processing
|
|
30
|
+
message('Processing xpm package @micro-os-plus/architecture-riscv...')
|
|
31
31
|
|
|
32
32
|
# -----------------------------------------------------------------------------
|
|
33
33
|
|
|
@@ -52,6 +52,7 @@ _local_include_directories += [
|
|
|
52
52
|
|
|
53
53
|
_local_sources += [
|
|
54
54
|
'src/semihosting.cpp',
|
|
55
|
+
'src/show-cpuid.cpp',
|
|
55
56
|
]
|
|
56
57
|
|
|
57
58
|
# https://mesonbuild.com/Reference-manual_functions.html#declare_dependency
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of the µOS++ project (https://micro-os-plus.github.io/).
|
|
3
|
+
* Copyright (c) 2023-2026 Liviu Ionescu. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
* purpose is hereby granted, under the terms of the MIT license.
|
|
7
|
+
*
|
|
8
|
+
* If a copy of the license was not distributed with this file, it can be
|
|
9
|
+
* obtained from https://opensource.org/licenses/mit.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// ----------------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
#include "micro-os-plus/architecture.h"
|
|
15
|
+
// #include "micro-os-plus/diag/trace.h"
|
|
16
|
+
|
|
17
|
+
// ----------------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
using namespace micro_os_plus;
|
|
20
|
+
|
|
21
|
+
// ----------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
micro_os_plus_architecture_show_cpuid (void)
|
|
25
|
+
{
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// ----------------------------------------------------------------------------
|