diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-09-01 19:59:44 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-09-01 19:59:44 -0500 |
commit | 386df39c9866a4d945de46ef0dcab2363c674e0e (patch) | |
tree | c0572ce6a2c81c93546210f599dff553783c5760 /kernel/src/arch/hosted/mod.rs | |
parent | 6b98b6afea6e790abe738a67aa28bab54c91afe0 (diff) |
Move almost all the kernel into crates/.
Diffstat (limited to 'kernel/src/arch/hosted/mod.rs')
-rw-r--r-- | kernel/src/arch/hosted/mod.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/kernel/src/arch/hosted/mod.rs b/kernel/src/arch/hosted/mod.rs deleted file mode 100644 index c1fb0ff..0000000 --- a/kernel/src/arch/hosted/mod.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! Support for running under an operating system that provides libstd, for testing. - -extern crate std; - -use std::{thread::sleep, time::Duration}; - -/// No-opped interrupt support. -/// -/// TODO: Should this use Unix signals? -pub mod interrupts { - pub fn disable_interrupts() {} -} - -/// Sleeps forever, in one-second chunks. -pub fn sleep_forever() -> ! { - loop { - sleep(Duration::from_secs(1)); - } -} |