Show correct arch in uname

master
Harry Cheng 5 years ago
parent d44cd0a33c
commit 2e2248bd75

@ -22,7 +22,7 @@ impl Syscall<'_> {
info!("uname: buf: {:?}", buf);
let offset = 65;
let strings = ["rCore", "orz", "0.1.0", "1", "machine", "domain"];
let strings = ["rCore", "orz", "0.1.0", "1", option_env!("ARCH").unwrap_or("unknown"), "domain"];
let buf = unsafe { self.vm().check_write_array(buf, strings.len() * offset)? };
for i in 0..strings.len() {

Loading…
Cancel
Save