Commit Graph

152 Commits (ch8-kern-coroutine)
 

Author SHA1 Message Date
Yu Chen ddc2134303 fix kernel thread, task.rs -- Line:93 -- kstack --> kstack:KernelStack(kstack_top). run correctly
3 years ago
Yu Chen 2166fecf49 add kernel thread, but run error
3 years ago
Yu Chen ca433ad389 add stackless_coroutine in kernel
3 years ago
Yu Chen 15dec102fa add comments in user/src/bin/stackless_coroutine.rs
3 years ago
Yu Chen 3cb46a7333 add user/src/bin/stackless_coutine.rs
3 years ago
Yu Chen 253f5a4982 add comments about inline asm in usr/src/bin/stackful_coroutine.rs
3 years ago
Yu Chen f0a11d1444 fix typo
3 years ago
Yu Chen e8cabee7d7 add more comments
3 years ago
Yu Chen 119eb9d634 rename green_threads to stackful_coroutine, add #[inline(never)] in t_yield fun, then run correctly
3 years ago
Yu Chen 81d3ffce64 update usr_app: green_threads, but still wrong. rustc add two more instrs in switch function asm codes
3 years ago
Yu Chen 02a3880e34 Merge branch 'ch8' of github.com:rcore-os/rCore-Tutorial-v3 into ch8
3 years ago
Yu Chen 7f5fa3355f add usr app: green_threads
3 years ago
Yifan Wu cc1e55c958 Bump Rust to nightly-2022-04-11 && support debugging in release mode
3 years ago
Yifan Wu f69f17b40e Merge branch 'ch8' of https://github.com/rcore-os/rCore-Tutorial-v3 into ch8
3 years ago
Yifan Wu c40fb55764 Add test early_exit
3 years ago
Yu Chen 9ad3bb4312 update README
3 years ago
Yu Chen dc6cd26f58 add CI for build-doc
3 years ago
Yifan Wu 61152471b7 Add boards/ && clippy
3 years ago
Yifan Wu 6f09af2c0f Support signal mechanism for ch8(only works on signal-thread apps)
3 years ago
Yifan Wu 29d6d26644 Fix cat && add count_lines
3 years ago
Yifan Wu 1c55663478 Small Fix && cargo fmt
3 years ago
Yifan Wu 740730e7f7 Merge recent update from ch7 && cargo clippy
3 years ago
Yifan Wu 514c110a28 Bump Rust to nightly-2022-01-19
3 years ago
Yifan Wu 40f37501af Maximum concurrent processes from 40/35->30.
3 years ago
Yifan Wu 24e530935f Update .gitignore
3 years ago
Yifan Wu 2ac621972c Merge recent updates from ch7.
4 years ago
Yifan Wu 72d6b38fca Now PageTable::unmap calls PageTable::find_pte instead of PageTable::find_pte_create.
4 years ago
Yifan Wu cf6d905ac4 Kernel cannot dump now.
4 years ago
Yifan Wu abd9d361e4 Bump to rust nightly-2022-01-01, feature global_asm,asm->stable
4 years ago
Yifan Wu 06243fac76 Bump to Rust nightly 2021-12-15
4 years ago
Yu Chen 713e78ea91 add condvar in kernel and app
4 years ago
Yu Chen 1c0bbf4404 add user app: sync_sem.rs
4 years ago
Yu Chen 90796450fe fix typo of sys_semaphore_create
4 years ago
Yifan Wu 4ad64e83f6 MutexBlocking works correctly.
4 years ago
Yu Chen 3dc6d9c97c add user app: race_adder with arg
4 years ago
Yifan Wu b77b108a28 Update os/Makefile, rm ... -f -> rm -f ...
4 years ago
Yu Chen 1baf177f9e update .gitignore README.md dev-env-info.md
4 years ago
Yifan Wu 2041a7c0d4 Now construction of PA/VA only uses 56/39 bits.
4 years ago
Yifan Wu cd6754a7df rust->nightly-2021-10-15,cargo-binutils->0.3.3
4 years ago
Yifan Wu 5753a09366 Implement mpsc using semaphores.
4 years ago
Yifan Wu aedd7f5612 Add a solution of Philosopher dining problem using Mutex with an illustration.
4 years ago
Yifan Wu b851f8d743 Create threads with a argument. See bin/threads_arg.rs
4 years ago
Yifan Wu 8adfc90db9 Implement sleep using blocking & BinaryHeap.
4 years ago
Yifan Wu 7225254d8a Add MutexBlocking.
4 years ago
Yifan Wu b0fad5aca3 Add MutexSpin and several syscalls.
4 years ago
Yifan Wu 43c6b7cf01 Add race_adder_{atomic,loop}.
4 years ago
Yifan Wu 136e26ae6c User base from 0x0->0x10000; user image size limit from 128MB->16MB; trigger race condition on k210
4 years ago
Yifan Wu 24b3c82b8a Stage2: multiple user threads based on uniprocessor, see new added test race_adder and threads.
4 years ago
Yifan Wu 1493ec9459 Stage1 clear! All applications work but now they are based on threads.
4 years ago
Yifan Wu c599a31dd0 Debugging sys_exec :(
4 years ago