From 2e2248bd75cca310dd62fa53f6c7f7ee277e7764 Mon Sep 17 00:00:00 2001 From: Harry Cheng Date: Wed, 31 Jul 2019 20:45:43 +0800 Subject: [PATCH] Show correct arch in uname --- kernel/src/syscall/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/syscall/misc.rs b/kernel/src/syscall/misc.rs index df0dec0..eb749fa 100644 --- a/kernel/src/syscall/misc.rs +++ b/kernel/src/syscall/misc.rs @@ -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() {