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 @@ -86,12 +86,14 @@ targets = [
8686 " riscv32i-unknown-none-elf" ,
8787 " riscv32imac-unknown-none-elf" ,
8888 " riscv32imc-unknown-none-elf" ,
89+ " riscv32-wrs-vxworks" ,
8990 " riscv64gc-unknown-freebsd" ,
9091 " riscv64gc-unknown-hermit" ,
9192 " riscv64gc-unknown-linux-gnu" ,
9293 " riscv64gc-unknown-linux-musl" ,
9394 " riscv64gc-unknown-none-elf" ,
9495 " riscv64imac-unknown-none-elf" ,
96+ " riscv64-wrs-vxworks" ,
9597 " s390x-unknown-linux-gnu" ,
9698 " s390x-unknown-linux-musl" ,
9799 " sparc-unknown-linux-gnu" ,
Original file line number Diff line number Diff line change @@ -249,11 +249,13 @@ riscv32i-unknown-none-elf \
249249riscv32imac-unknown-none-elf \
250250riscv32imc-unknown-none-elf \
251251riscv32gc-unknown-linux-gnu \
252+ riscv32-wrs-vxworks \
252253riscv64gc-unknown-freebsd \
253254riscv64gc-unknown-hermit \
254255riscv64gc-unknown-linux-musl \
255256riscv64gc-unknown-none-elf \
256257riscv64imac-unknown-none-elf \
258+ riscv64-wrs-vxworks \
257259s390x-unknown-linux-musl \
258260sparc-unknown-linux-gnu \
259261sparc64-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.
@@ -1972,6 +1972,12 @@ cfg_if! {
19721972 } else if #[ cfg( target_arch = "powerpc64" ) ] {
19731973 mod powerpc64;
19741974 pub use self :: powerpc64:: * ;
1975+ } else if #[ cfg( target_arch = "riscv32" ) ] {
1976+ mod riscv32;
1977+ pub use self :: riscv32:: * ;
1978+ } else if #[ cfg( target_arch = "riscv64" ) ] {
1979+ mod riscv64;
1980+ pub use self :: riscv64:: * ;
19751981 } else {
19761982 // Unknown target_arch
19771983 }
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