File tree Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,14 @@ targets = [
85
85
" riscv32i-unknown-none-elf" ,
86
86
" riscv32imac-unknown-none-elf" ,
87
87
" riscv32imc-unknown-none-elf" ,
88
+ " riscv32-wrs-vxworks" ,
88
89
" riscv64gc-unknown-freebsd" ,
89
90
" riscv64gc-unknown-hermit" ,
90
91
" riscv64gc-unknown-linux-gnu" ,
91
92
" riscv64gc-unknown-linux-musl" ,
92
93
" riscv64gc-unknown-none-elf" ,
93
94
" riscv64imac-unknown-none-elf" ,
95
+ " riscv64-wrs-vxworks" ,
94
96
" s390x-unknown-linux-gnu" ,
95
97
" s390x-unknown-linux-musl" ,
96
98
" sparc-unknown-linux-gnu" ,
Original file line number Diff line number Diff line change @@ -252,11 +252,13 @@ riscv32i-unknown-none-elf \
252
252
riscv32imac-unknown-none-elf \
253
253
riscv32imc-unknown-none-elf \
254
254
riscv32gc-unknown-linux-gnu \
255
+ riscv32-wrs-vxworks \
255
256
riscv64gc-unknown-freebsd \
256
257
riscv64gc-unknown-hermit \
257
258
riscv64gc-unknown-linux-musl \
258
259
riscv64gc-unknown-none-elf \
259
260
riscv64imac-unknown-none-elf \
261
+ riscv64-wrs-vxworks \
260
262
s390x-unknown-linux-musl \
261
263
sparc-unknown-linux-gnu \
262
264
sparc64-unknown-netbsd \
Original file line number Diff line number Diff line change @@ -1878,8 +1878,8 @@ extern "C" {
1878
1878
pub fn mq_setattr ( mqd : :: mqd_t , newattr : * const :: mq_attr , oldattr : * mut :: mq_attr ) -> :: c_int ;
1879
1879
1880
1880
// vxCpuLib.h
1881
- fn vxCpuEnabledGet ( ) -> :: cpuset_t ; // Get set of running CPU's in the system
1882
- fn vxCpuConfiguredGet ( ) -> :: cpuset_t ; // Get set of Configured CPU's in the system
1881
+ pub fn vxCpuEnabledGet ( ) -> :: cpuset_t ; // Get set of running CPU's in the system
1882
+ pub fn vxCpuConfiguredGet ( ) -> :: cpuset_t ; // Get set of Configured CPU's in the system
1883
1883
}
1884
1884
1885
1885
//Dummy functions, these don't really exist in VxWorks.
@@ -1980,6 +1980,12 @@ cfg_if! {
1980
1980
} else if #[ cfg( target_arch = "powerpc64" ) ] {
1981
1981
mod powerpc64;
1982
1982
pub use self :: powerpc64:: * ;
1983
+ } else if #[ cfg( target_arch = "riscv32" ) ] {
1984
+ mod riscv32;
1985
+ pub use self :: riscv32:: * ;
1986
+ } else if #[ cfg( target_arch = "riscv64" ) ] {
1987
+ mod riscv64;
1988
+ pub use self :: riscv64:: * ;
1983
1989
} else {
1984
1990
// Unknown target_arch
1985
1991
}
Original file line number Diff line number Diff line change
1
+ pub type c_char = i8 ;
2
+ pub type wchar_t = i32 ;
3
+ pub type c_long = i32 ;
4
+ pub type c_ulong = u32 ;
Original file line number Diff line number Diff line change
1
+ pub type c_char = i8 ;
2
+ pub type wchar_t = i32 ;
3
+ pub type c_long = i64 ;
4
+ pub type c_ulong = u64 ;
You can’t perform that action at this time.
0 commit comments