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/x86_64/context.rs | |
| parent | 6e5e38e7f21ea5a69ac0ac538584841df9f6b13f (diff) | |
formatting code
Diffstat (limited to 'src/arch/x86_64/context.rs')
| -rw-r--r-- | src/arch/x86_64/context.rs | 4 |
1 files changed, 2 insertions, 2 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!() } |
