From ba0c1e63699e0a02ea6d32d3f03903aa715ec034 Mon Sep 17 00:00:00 2001 From: chyyuu Date: Tue, 21 Jun 2022 16:49:04 +0000 Subject: [PATCH] deploy: 4ceb50d702ac75dbb68d60fe83d90a7622e75a84 --- ch1/os/sbi/fn.console_getchar.html | 2 +- ch1/os/sbi/fn.console_putchar.html | 2 +- ch1/os/sbi/fn.sbi_call.html | 2 +- ch1/os/sbi/fn.shutdown.html | 2 +- ch1/os/sbi/index.html | 2 +- ch1/src/os/sbi.rs.html | 2 ++ 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ch1/os/sbi/fn.console_getchar.html b/ch1/os/sbi/fn.console_getchar.html index f9b86ce0..d5619db7 100644 --- a/ch1/os/sbi/fn.console_getchar.html +++ b/ch1/os/sbi/fn.console_getchar.html @@ -4,6 +4,6 @@
pub fn console_getchar() -> usize
Expand description

use sbi call to getchar from console (qemu uart handler)

+

Function os::sbi::console_getchar

source · []
pub fn console_getchar() -> usize
Expand description

use sbi call to getchar from console (qemu uart handler)

\ No newline at end of file diff --git a/ch1/os/sbi/fn.console_putchar.html b/ch1/os/sbi/fn.console_putchar.html index 5bd379a3..060b70de 100644 --- a/ch1/os/sbi/fn.console_putchar.html +++ b/ch1/os/sbi/fn.console_putchar.html @@ -4,6 +4,6 @@
pub fn console_putchar(c: usize)
Expand description

use sbi call to putchar in console (qemu uart handler)

+

Function os::sbi::console_putchar

source · []
pub fn console_putchar(c: usize)
Expand description

use sbi call to putchar in console (qemu uart handler)

\ No newline at end of file diff --git a/ch1/os/sbi/fn.sbi_call.html b/ch1/os/sbi/fn.sbi_call.html index 7555efc9..9d5933ee 100644 --- a/ch1/os/sbi/fn.sbi_call.html +++ b/ch1/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/ch1/os/sbi/fn.shutdown.html b/ch1/os/sbi/fn.shutdown.html index 0cffad23..bdcc1dab 100644 --- a/ch1/os/sbi/fn.shutdown.html +++ b/ch1/os/sbi/fn.shutdown.html @@ -4,6 +4,6 @@
-

Function os::sbi::shutdown

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

use sbi call to shutdown the kernel

+

Function os::sbi::shutdown

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

use sbi call to shutdown the kernel

\ No newline at end of file diff --git a/ch1/os/sbi/index.html b/ch1/os/sbi/index.html index 4af362d0..9b5f3294 100644 --- a/ch1/os/sbi/index.html +++ b/ch1/os/sbi/index.html @@ -4,7 +4,7 @@
-

Module os::sbi

source · []

Constants

+

Module os::sbi

source · []

Constants

Functions

use sbi call to getchar from console (qemu uart handler)

use sbi call to putchar in console (qemu uart handler)

diff --git a/ch1/src/os/sbi.rs.html b/ch1/src/os/sbi.rs.html index c28b4387..7b313c80 100644 --- a/ch1/src/os/sbi.rs.html +++ b/ch1/src/os/sbi.rs.html @@ -47,6 +47,7 @@ 42 43 44 +45
#![allow(unused)]
 
 use core::arch::asm;
@@ -66,6 +67,7 @@
     let mut ret;
     unsafe {
         asm!(
+            "li x16, 0",
             "ecall",
             inlateout("x10") arg0 => ret,
             in("x11") arg1,