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 @@ -73,6 +73,7 @@ cfg_if::cfg_if! {
73
73
} else if #[ cfg( any(
74
74
all( target_family = "wasm" , target_os = "unknown" ) ,
75
75
target_os = "xous" ,
76
+ target_os = "vexos" ,
76
77
) ) ] {
77
78
// FIXME: finally remove std support for wasm32-unknown-unknown
78
79
// FIXME: add random data generation to xous
@@ -86,6 +87,7 @@ cfg_if::cfg_if! {
86
87
target_os = "android" ,
87
88
all( target_family = "wasm" , target_os = "unknown" ) ,
88
89
target_os = "xous" ,
90
+ target_os = "vexos" ,
89
91
) ) ) ]
90
92
pub fn hashmap_random_keys ( ) -> ( u64 , u64 ) {
91
93
let mut buf = [ 0 ; 16 ] ;
You can’t perform that action at this time.
0 commit comments