|
|
@ -22,7 +22,7 @@ impl Syscall<'_> {
|
|
|
|
info!("uname: buf: {:?}", buf);
|
|
|
|
info!("uname: buf: {:?}", buf);
|
|
|
|
|
|
|
|
|
|
|
|
let offset = 65;
|
|
|
|
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)? };
|
|
|
|
let buf = unsafe { self.vm().check_write_array(buf, strings.len() * offset)? };
|
|
|
|
|
|
|
|
|
|
|
|
for i in 0..strings.len() {
|
|
|
|
for i in 0..strings.len() {
|
|
|
|