瀏覽代碼

fix(UserString): register should be marked inout

We actually modified the given register. So we need to mark it as
clobbered to inform the compiler of that.
greatbridf 11 月之前
父節點
當前提交
d873af30d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/kernel/user/dataflow.rs

+ 1 - 1
src/kernel/user/dataflow.rs

@@ -275,7 +275,7 @@ impl<'lt> UserString<'lt> {
                 ".quad 3b",  // fix jump address
                 ".quad 0x2", // type: string
                 ".popsection",
-                in("rdx") ptr.get_const::<u8>(),
+                inout("rdx") ptr.get_const::<u8>() => _,
                 inout("rcx") MAX_LEN => result,
             )
         };