aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86_64/context.rs4
-rw-r--r--src/arch/x86_64/cpu.rs0
-rw-r--r--src/arch/x86_64/mod.rs3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/arch/x86_64/context.rs b/src/arch/x86_64/context.rs
index 08fd3b6..37b6c2f 100644
--- a/src/arch/x86_64/context.rs
+++ b/src/arch/x86_64/context.rs
@@ -13,7 +13,7 @@ pub struct Context {
}
/// prepare the thread (coroutine) for the first execution
-pub unsafe fn settle(){
+pub unsafe fn settle() {
todo!()
// it will be something like this...
// void **sp = (void**)tos;
@@ -23,6 +23,6 @@ pub unsafe fn settle(){
// regs->rsp = sp;
}
-pub unsafe fn switch(ctx_curr:usize, ctx_next:usize){
+pub unsafe fn switch(ctx_curr: usize, ctx_next: usize) {
todo!()
}
diff --git a/src/arch/x86_64/cpu.rs b/src/arch/x86_64/cpu.rs
deleted file mode 100644
index e69de29..0000000
--- a/src/arch/x86_64/cpu.rs
+++ /dev/null
diff --git a/src/arch/x86_64/mod.rs b/src/arch/x86_64/mod.rs
index 03d2af0..4da1970 100644
--- a/src/arch/x86_64/mod.rs
+++ b/src/arch/x86_64/mod.rs
@@ -1,6 +1,5 @@
-pub mod cpu;
+pub mod context;
pub mod interrupt;
pub mod io_port;
pub mod mem;
pub mod misc;
-pub mod context;