Skip to content

Commit 39a6475

Browse files
committed
[no ci] wasmtime now works on Theseus! (simple tests only)
1 parent f77129f commit 39a6475

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

applications/test_wasmtime/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#[macro_use] extern crate terminal_print;
1010

1111
use alloc::{
12-
string::String,
12+
string::{String, ToString},
1313
vec::Vec,
1414
};
1515
use path::Path;
@@ -27,7 +27,7 @@ pub fn main(args: Vec<String>) -> isize {
2727

2828

2929
fn rmain(args: Vec<String>) -> Result<(), String> {
30-
let path_to_hello_cwasm = Path::new(args[0].clone());
30+
let path_to_hello_cwasm = Path::new(args.get(0).cloned().unwrap_or("/extra_files/hello.cwasm".to_string()));
3131
let curr_dir = task::get_my_current_task()
3232
.map(|t| t.get_env().lock().working_dir.clone())
3333
.ok_or_else(|| format!("Failed to get task's current working dir"))?;

extra_files/hello.cwasm

-2 Bytes
Binary file not shown.

kernel/memory/src/paging/mapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl MappedPages {
393393

394394
match alloc_pages_owned.split(at_page) {
395395
Ok((first_ap, second_ap)) => Ok((
396-
MappedPages{
396+
MappedPages {
397397
page_table_p4: self.page_table_p4,
398398
pages: first_ap,
399399
flags: self.flags,

kernel/mod_mgmt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ impl CrateNamespace {
12471247
error!("Failed to get the .text.unlikely. section's name: {:?}", sec_name);
12481248
"Failed to get the .text.unlikely. section's name after the prefix"
12491249
})?;
1250-
warn!("Note: adjusting section name:\n{}\n{}", name, new_name);
1250+
warn!("Note: adjusting section name: \n {}\n --> {}", name, new_name);
12511251
new_name
12521252
} else {
12531253
name

0 commit comments

Comments
 (0)