Commit Graph

73 Commits (ch8-kern-coroutine)

Author SHA1 Message Date
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 c40fb55764 Add test early_exit
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 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 abd9d361e4 Bump to rust nightly-2022-01-01, feature global_asm,asm->stable
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 3dc6d9c97c add user app: race_adder with arg
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
Yifan Wu bf69560f9b Update rustsbi; huge_write writes 1MiB
4 years ago
Yifan Wu 315e61da1a Rm spin::Mutex except for easy-fs & add new test huge_write & flush cache to disk after a write transaction
4 years ago
Yifan Wu a09429b32c Link small sections in linker
4 years ago
Yifan Wu 3e1c12b6a1 Add sys_dup && support input/output redirection in user_shell
4 years ago
Yifan Wu a7346c96b4 DiskInode sz->128bytes && user heap -> 32KiB
4 years ago
Yifan Wu 8a1c96d963 Add tool: cat
4 years ago
Yifan Wu 90d351bfe8 Support cmdline_args when sys_exec.
4 years ago
Yifan Wu 920d077a66 Refactor easy-fs.
4 years ago
Yifan Wu 69933e2985 Close all pipes in pipetest.
4 years ago
Yifan Wu b6626d534b Fix other usertests: xstate -> exit_code
4 years ago
Yifan Wu b8240fac5a Fix user_shell
4 years ago
Yifan Wu a6c7b52283 Fix exit_code in user
4 years ago
Yifan Wu 606abbe6a1 Simple filetest passed on qemu/k210.
5 years ago
Yifan Wu 63bccc4e8f Now sleep test sleeps 5secs.
5 years ago
Yifan Wu 8e178c0080 Pipe OK.
5 years ago
Yifan Wu f5c029d3db k210 only can use 6M before configuring sdcard.
5 years ago