diff options
| author | Tianhao Wang <shrik3@mailbox.org> | 2024-04-17 23:59:03 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:16:34 +0200 |
| commit | 43d2363b0bf16df6932db54fff28089207f8e2b4 (patch) | |
| tree | a00b6aa39ace1b44892b223457dd96561d679696 /src/arch | |
| parent | 6e5e38e7f21ea5a69ac0ac538584841df9f6b13f (diff) | |
formatting code
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/x86_64/context.rs | 4 | ||||
| -rw-r--r-- | src/arch/x86_64/cpu.rs | 0 | ||||
| -rw-r--r-- | src/arch/x86_64/mod.rs | 3 |
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; |
