Commit Graph

79 Commits (c40fb55764c7b6a8675bf337d577cc31fd3764c6)

Author SHA1 Message Date
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 1c55663478 Small Fix && cargo fmt
3 years ago
Yifan Wu 740730e7f7 Merge recent update from ch7 && cargo clippy
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
Yu Chen 713e78ea91 add condvar in kernel and app
4 years ago
Yu Chen 90796450fe fix typo of sys_semaphore_create
4 years ago
Yifan Wu 4ad64e83f6 MutexBlocking works correctly.
4 years ago
Yifan Wu 2041a7c0d4 Now construction of PA/VA only uses 56/39 bits.
4 years ago
Yifan Wu 5753a09366 Implement mpsc using semaphores.
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 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 26bbec6320 Working on ch8
4 years ago
Yifan Wu 638eb8666a Update rustc && rustsbi-k210
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 195816ce2c Fix qemu mmio range
4 years ago
Yifan Wu e643af7937 Fix k210 alignment issue when push cmdargs when sys_exec
4 years ago
Yifan Wu 3e1c12b6a1 Add sys_dup && support input/output redirection in user_shell
4 years ago
Yifan Wu 90d351bfe8 Support cmdline_args when sys_exec.
4 years ago
Yifan Wu b8f1db4aa3 Fix overflow bug when ceiling va
4 years ago
Yifan Wu 04114ad949 Remove Any Trait of File
4 years ago
Yifan Wu 9b65abcfa8 Fix lock uses in ch5
4 years ago
Yifan Wu fd75ac027a Mutex -> RefCell in Processor.
4 years ago
Yifan Wu e04394af56 Replace TCB.inner.block with TCB::acquire_inner_lock
4 years ago
Yifan Wu 33373aa20d Bump rustsbi to 0.1.1 && make config of qemu/k210 different
4 years ago
Yifan Wu 9d7882a73d Do not clone KERNEL_SPACE in mm::init
4 years ago
Yifan Wu dbe56c1362 Move some variable name to task_cx to task_cx_ptr2(ch5 ver).
5 years ago
Yifan Wu fd638d5388 Remove meaningless sstatus::set_sie() when initializing.
5 years ago
Yifan Wu 7c0d66c58f Remove some warnings.
5 years ago
Yifan Wu 606abbe6a1 Simple filetest passed on qemu/k210.
5 years ago
Yifan Wu 1bafe9615f Fix virtio_phys_to_virt. Now we can load app from disk on qemu/k210!
5 years ago
Yifan Wu ae9eecf97b Load app from sdcard on K210, but panicked on qemu.
5 years ago
Yifan Wu 84900e8b94 Remove block device test.
5 years ago
Yifan Wu 914f042617 Add sdcard driver based on k210-rust crates && adjust clock freq.
5 years ago
Yifan Wu f754326d0a virtio-blk worked.
5 years ago
Yifan Wu 8e178c0080 Pipe OK.
5 years ago
Yifan Wu 2e6734027d Rewrite Stdin/Stdout
5 years ago
Yifan Wu f5c029d3db k210 only can use 6M before configuring sdcard.
5 years ago
Yifan Wu 84b10893d4 forktree worked with depth=3 on k210 platform.
5 years ago