From 714d418abac56e4718259ceb6143a5131bb95aaf Mon Sep 17 00:00:00 2001 From: chyyuu Date: Tue, 21 Jun 2022 16:50:38 +0000 Subject: [PATCH] deploy: 00d92c51b59be9d3b4f1620a4b20b35b3f8dbcbd --- ch3-coop/os/sbi/fn.console_putchar.html | 2 +- ch3-coop/os/sbi/fn.sbi_call.html | 2 +- ch3-coop/os/sbi/fn.shutdown.html | 2 +- ch3-coop/os/sbi/index.html | 2 +- ch3-coop/src/os/sbi.rs.html | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ch3-coop/os/sbi/fn.console_putchar.html b/ch3-coop/os/sbi/fn.console_putchar.html index 060b70de..8840ca6a 100644 --- a/ch3-coop/os/sbi/fn.console_putchar.html +++ b/ch3-coop/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/ch3-coop/os/sbi/fn.sbi_call.html b/ch3-coop/os/sbi/fn.sbi_call.html index 9b8be846..3a23d6f7 100644 --- a/ch3-coop/os/sbi/fn.sbi_call.html +++ b/ch3-coop/os/sbi/fn.sbi_call.html @@ -4,6 +4,6 @@
-

Function os::sbi::sbi_call

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

handle SBI call with which SBI_id and other arguments

+

Function os::sbi::sbi_call

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

handle SBI call with which SBI_id and other arguments

\ No newline at end of file diff --git a/ch3-coop/os/sbi/fn.shutdown.html b/ch3-coop/os/sbi/fn.shutdown.html index 228f9a20..2b751dd4 100644 --- a/ch3-coop/os/sbi/fn.shutdown.html +++ b/ch3-coop/os/sbi/fn.shutdown.html @@ -4,7 +4,7 @@
-

Function os::sbi::shutdown

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

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

Function os::sbi::shutdown

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

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

\ No newline at end of file diff --git a/ch3-coop/os/sbi/index.html b/ch3-coop/os/sbi/index.html index 47ec0030..5e757b7e 100644 --- a/ch3-coop/os/sbi/index.html +++ b/ch3-coop/os/sbi/index.html @@ -4,7 +4,7 @@
-

Module os::sbi

source · []
Expand description

SBI call wrappers

+

Module os::sbi

source · []
Expand description

SBI call wrappers

Constants

Functions

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

diff --git a/ch3-coop/src/os/sbi.rs.html b/ch3-coop/src/os/sbi.rs.html index ac217ed5..c6fd5ffd 100644 --- a/ch3-coop/src/os/sbi.rs.html +++ b/ch3-coop/src/os/sbi.rs.html @@ -48,6 +48,7 @@ 43 44 45 +46
//! SBI call wrappers
 
 use core::arch::asm;
@@ -68,6 +69,7 @@
     let mut ret;
     unsafe {
         asm!(
+            "li x16, 0",
             "ecall",
             inlateout("x10") arg0 => ret,
             in("x11") arg1,