Remove K210 support.
This commit is contained in:
parent
afe83aa7f7
commit
66a93a40a7
5 changed files with 6 additions and 44 deletions
|
@ -31,10 +31,6 @@ extern crate alloc;
|
|||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
|
||||
#[cfg(feature = "board_k210")]
|
||||
#[path = "boards/k210.rs"]
|
||||
mod board;
|
||||
#[cfg(not(any(feature = "board_k210")))]
|
||||
#[path = "boards/qemu.rs"]
|
||||
mod board;
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ const SBI_REMOTE_FENCE_I: usize = 5;
|
|||
const SBI_REMOTE_SFENCE_VMA: usize = 6;
|
||||
const SBI_REMOTE_SFENCE_VMA_ASID: usize = 7;
|
||||
const SBI_SHUTDOWN: usize = 8;
|
||||
|
||||
/// general sbi call
|
||||
#[inline(always)]
|
||||
fn sbi_call(which: usize, arg0: usize, arg1: usize, arg2: usize) -> usize {
|
||||
|
|
|
@ -59,7 +59,6 @@ pub fn suspend_current_and_run_next() {
|
|||
/// pid of usertests app in make run TEST=1
|
||||
pub const IDLE_PID: usize = 0;
|
||||
|
||||
#[cfg(feature = "board_qemu")]
|
||||
use crate::board::QEMUExit;
|
||||
|
||||
/// Exit the current 'Running' task and run the next task in task list.
|
||||
|
@ -67,9 +66,7 @@ pub fn exit_current_and_run_next(exit_code: i32) {
|
|||
// take from Processor
|
||||
let task = take_current_task().unwrap();
|
||||
|
||||
#[cfg(feature = "board_qemu")]
|
||||
let pid = task.getpid();
|
||||
#[cfg(feature = "board_qemu")]
|
||||
if pid == IDLE_PID {
|
||||
println!(
|
||||
"[kernel] Idle process exit with exit_code {} ...",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue