-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a reboot command * Add STOP syscall * Add ctrl-alt-del reboot keys * Add comment to keyboard shortcut
- Loading branch information
Showing
10 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
use crate::{sys, usr}; | ||
use crate::usr; | ||
use crate::api::syscall; | ||
use crate::api::console::Style; | ||
|
||
pub fn main(_args: &[&str]) -> usr::shell::ExitCode { | ||
let csi_color = Style::color("Yellow"); | ||
let csi_reset = Style::reset(); | ||
println!("{}MOROS has reached its fate, the system is now halting.{}", csi_color, csi_reset); | ||
sys::acpi::shutdown(); | ||
syscall::sleep(0.5); | ||
syscall::halt(); | ||
loop { syscall::sleep(1.0) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::usr; | ||
use crate::api::syscall; | ||
use crate::api::console::Style; | ||
|
||
pub fn main(_args: &[&str]) -> usr::shell::ExitCode { | ||
let csi_color = Style::color("Yellow"); | ||
let csi_reset = Style::reset(); | ||
println!("{}MOROS has reached its fate, the system is now rebooting.{}", csi_color, csi_reset); | ||
syscall::sleep(0.5); | ||
syscall::reboot(); | ||
loop { syscall::sleep(1.0) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters