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 = [
8585 " riscv32i-unknown-none-elf" ,
8686 " riscv32imac-unknown-none-elf" ,
8787 " riscv32imc-unknown-none-elf" ,
88+ " riscv32-wrs-vxworks" ,
8889 " riscv64gc-unknown-freebsd" ,
8990 " riscv64gc-unknown-hermit" ,
9091 " riscv64gc-unknown-linux-gnu" ,
9192 " riscv64gc-unknown-linux-musl" ,
9293 " riscv64gc-unknown-none-elf" ,
9394 " riscv64imac-unknown-none-elf" ,
95+ " riscv64-wrs-vxworks" ,
9496 " s390x-unknown-linux-gnu" ,
9597 " s390x-unknown-linux-musl" ,
9698 " sparc-unknown-linux-gnu" ,
Original file line number Diff line number Diff line change @@ -252,11 +252,13 @@ riscv32i-unknown-none-elf \
252252riscv32imac-unknown-none-elf \
253253riscv32imc-unknown-none-elf \
254254riscv32gc-unknown-linux-gnu \
255+ riscv32-wrs-vxworks \
255256riscv64gc-unknown-freebsd \
256257riscv64gc-unknown-hermit \
257258riscv64gc-unknown-linux-musl \
258259riscv64gc-unknown-none-elf \
259260riscv64imac-unknown-none-elf \
261+ riscv64-wrs-vxworks \
260262s390x-unknown-linux-musl \
261263sparc-unknown-linux-gnu \
262264sparc64-unknown-netbsd \
Original file line number Diff line number Diff line change @@ -1878,8 +1878,8 @@ extern "C" {
18781878 pub fn mq_setattr ( mqd : :: mqd_t , newattr : * const :: mq_attr , oldattr : * mut :: mq_attr ) -> :: c_int ;
18791879
18801880 // 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
18831883}
18841884
18851885//Dummy functions, these don't really exist in VxWorks.
@@ -1980,6 +1980,12 @@ cfg_if! {
19801980 } else if #[ cfg( target_arch = "powerpc64" ) ] {
19811981 mod powerpc64;
19821982 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:: * ;
19831989 } else {
19841990 // Unknown target_arch
19851991 }
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