From 419eec0d1a4171eeb0cf101a601c299e44dd3c69 Mon Sep 17 00:00:00 2001 From: chyyuu Date: Tue, 21 Jun 2022 16:50:25 +0000 Subject: [PATCH] deploy: 03a7e2f0b95752a2d056c4000fdbb3fe189885f2 --- ch8/os/sbi/fn.console_getchar.html | 2 +- ch8/os/sbi/fn.console_putchar.html | 2 +- ch8/os/sbi/fn.sbi_call.html | 2 +- ch8/os/sbi/fn.set_timer.html | 2 +- ch8/os/sbi/fn.shutdown.html | 2 +- ch8/os/sbi/index.html | 2 +- ch8/src/os/sbi.rs.html | 2 ++ 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ch8/os/sbi/fn.console_getchar.html b/ch8/os/sbi/fn.console_getchar.html index 1223ca43..3eaadfd0 100644 --- a/ch8/os/sbi/fn.console_getchar.html +++ b/ch8/os/sbi/fn.console_getchar.html @@ -4,5 +4,5 @@
pub fn console_getchar() -> usize
+

Function os::sbi::console_getchar

source · []
pub fn console_getchar() -> usize
\ No newline at end of file diff --git a/ch8/os/sbi/fn.console_putchar.html b/ch8/os/sbi/fn.console_putchar.html index f65a2732..d031e02d 100644 --- a/ch8/os/sbi/fn.console_putchar.html +++ b/ch8/os/sbi/fn.console_putchar.html @@ -4,5 +4,5 @@
pub fn console_putchar(c: usize)
+

Function os::sbi::console_putchar

source · []
pub fn console_putchar(c: usize)
\ No newline at end of file diff --git a/ch8/os/sbi/fn.sbi_call.html b/ch8/os/sbi/fn.sbi_call.html index 7555efc9..9d5933ee 100644 --- a/ch8/os/sbi/fn.sbi_call.html +++ b/ch8/os/sbi/fn.sbi_call.html @@ -4,5 +4,5 @@
-

Function os::sbi::sbi_call

source · []
fn sbi_call(which: usize, arg0: usize, arg1: usize, arg2: usize) -> usize
+

Function os::sbi::sbi_call

source · []
fn sbi_call(which: usize, arg0: usize, arg1: usize, arg2: usize) -> usize
\ No newline at end of file diff --git a/ch8/os/sbi/fn.set_timer.html b/ch8/os/sbi/fn.set_timer.html index a189954c..ca141899 100644 --- a/ch8/os/sbi/fn.set_timer.html +++ b/ch8/os/sbi/fn.set_timer.html @@ -4,5 +4,5 @@
-

Function os::sbi::set_timer

source · []
pub fn set_timer(timer: usize)
+

Function os::sbi::set_timer

source · []
pub fn set_timer(timer: usize)
\ No newline at end of file diff --git a/ch8/os/sbi/fn.shutdown.html b/ch8/os/sbi/fn.shutdown.html index 67e910eb..57e95f61 100644 --- a/ch8/os/sbi/fn.shutdown.html +++ b/ch8/os/sbi/fn.shutdown.html @@ -4,5 +4,5 @@
-

Function os::sbi::shutdown

source · []
pub fn shutdown() -> !
+

Function os::sbi::shutdown

source · []
pub fn shutdown() -> !
\ No newline at end of file diff --git a/ch8/os/sbi/index.html b/ch8/os/sbi/index.html index a6c08362..be786556 100644 --- a/ch8/os/sbi/index.html +++ b/ch8/os/sbi/index.html @@ -4,7 +4,7 @@
-

Module os::sbi

source · []

Constants

+

Module os::sbi

source · []

Constants

Functions

\ No newline at end of file diff --git a/ch8/src/os/sbi.rs.html b/ch8/src/os/sbi.rs.html index f39290ab..4b28b5a7 100644 --- a/ch8/src/os/sbi.rs.html +++ b/ch8/src/os/sbi.rs.html @@ -48,6 +48,7 @@ 43 44 45 +46
#![allow(unused)]
 
 use core::arch::asm;
@@ -67,6 +68,7 @@
     let mut ret;
     unsafe {
         asm!(
+            "li x16, 0",
             "ecall",
             inlateout("x10") arg0 => ret,
             in("x11") arg1,