File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 1
- pub mod alloc;
2
1
#[ path = "../unsupported/args.rs" ]
3
2
pub mod args;
4
3
pub mod env;
@@ -19,7 +18,6 @@ pub mod thread;
19
18
pub mod time;
20
19
21
20
use crate :: arch:: global_asm;
22
- use crate :: hash:: { DefaultHasher , Hasher } ;
23
21
use crate :: ptr:: { self , addr_of_mut} ;
24
22
use crate :: time:: { Duration , Instant } ;
25
23
@@ -55,11 +53,6 @@ pub unsafe extern "C" fn _start() -> ! {
55
53
56
54
main ( ) ;
57
55
58
- unsafe {
59
- crate :: sys:: thread_local:: destructors:: run ( ) ;
60
- }
61
- crate :: rt:: thread_cleanup ( ) ;
62
-
63
56
abort_internal ( )
64
57
}
65
58
@@ -127,17 +120,3 @@ pub fn abort_internal() -> ! {
127
120
crate :: hint:: spin_loop ( )
128
121
}
129
122
}
130
-
131
- fn hash_time ( ) -> u64 {
132
- let mut hasher = DefaultHasher :: new ( ) ;
133
- // The closest we can get to a random number is the time since program start
134
- let time = unsafe { vex_sdk:: vexSystemHighResTimeGet ( ) } ;
135
- hasher. write_u64 ( time) ;
136
- hasher. finish ( )
137
- }
138
-
139
- pub fn hashmap_random_keys ( ) -> ( u64 , u64 ) {
140
- let key1 = hash_time ( ) ;
141
- let key2 = hash_time ( ) ;
142
- ( key1, key2)
143
- }
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ cfg_if::cfg_if! {
75
75
} else if #[ cfg( any(
76
76
all( target_family = "wasm" , target_os = "unknown" ) ,
77
77
target_os = "xous" ,
78
+ target_os = "vexos" ,
78
79
) ) ] {
79
80
// FIXME: finally remove std support for wasm32-unknown-unknown
80
81
// FIXME: add random data generation to xous
@@ -88,6 +89,7 @@ cfg_if::cfg_if! {
88
89
target_os = "android" ,
89
90
all( target_family = "wasm" , target_os = "unknown" ) ,
90
91
target_os = "xous" ,
92
+ target_os = "vexos" ,
91
93
) ) ) ]
92
94
pub fn hashmap_random_keys ( ) -> ( u64 , u64 ) {
93
95
let mut buf = [ 0 ; 16 ] ;
You can’t perform that action at this time.
0 commit comments