Yifan Wu
72d6b38fca
Now PageTable::unmap calls PageTable::find_pte instead of PageTable::find_pte_create.
3 years ago
Yifan Wu
cf6d905ac4
Kernel cannot dump now.
3 years ago
Yifan Wu
abd9d361e4
Bump to rust nightly-2022-01-01, feature global_asm,asm->stable
3 years ago
Yu Chen
713e78ea91
add condvar in kernel and app
3 years ago
Yu Chen
90796450fe
fix typo of sys_semaphore_create
3 years ago
Yifan Wu
4ad64e83f6
MutexBlocking works correctly.
3 years ago
Yifan Wu
b77b108a28
Update os/Makefile, rm ... -f -> rm -f ...
3 years ago
Yifan Wu
2041a7c0d4
Now construction of PA/VA only uses 56/39 bits.
3 years ago
Yifan Wu
cd6754a7df
rust->nightly-2021-10-15,cargo-binutils->0.3.3
3 years ago
Yifan Wu
5753a09366
Implement mpsc using semaphores.
3 years ago
Yifan Wu
b851f8d743
Create threads with a argument. See bin/threads_arg.rs
3 years ago
Yifan Wu
8adfc90db9
Implement sleep using blocking & BinaryHeap.
3 years ago
Yifan Wu
7225254d8a
Add MutexBlocking.
3 years ago
Yifan Wu
b0fad5aca3
Add MutexSpin and several syscalls.
3 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
ff69985d79
Downgrade cargo-binutils to 0.2.0
4 years ago
Yifan Wu
a09429b32c
Link small sections in linker
4 years ago
Yifan Wu
d57a160b32
Do not fetch tools when running on qemu.
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
920d077a66
Refactor easy-fs.
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
1cc75ded25
Move kflash.py out of proj.
4 years ago
Yifan Wu
33373aa20d
Bump rustsbi to 0.1.1 && make config of qemu/k210 different
4 years ago
Yifan Wu
4f7db8b92e
Update os/Makefile && Update rust to 2021-01-30
4 years ago
Yifan Wu
9d7882a73d
Do not clone KERNEL_SPACE in mm::init
4 years ago
Yifan Wu
e588d40d70
Fix os/Makefile: Support macOS
4 years ago
Yifan Wu
dbe56c1362
Move some variable name to task_cx to task_cx_ptr2(ch5 ver).
4 years ago
Yifan Wu
fd638d5388
Remove meaningless sstatus::set_sie() when initializing.
4 years ago
Yifan Wu
208b827b5c
Add env.
4 years ago
Yifan Wu
7c0d66c58f
Remove some warnings.
4 years ago
Yifan Wu
606abbe6a1
Simple filetest passed on qemu/k210.
4 years ago
Yifan Wu
1bafe9615f
Fix virtio_phys_to_virt. Now we can load app from disk on qemu/k210!
4 years ago
Yifan Wu
ae9eecf97b
Load app from sdcard on K210, but panicked on qemu.
4 years ago
Yifan Wu
ea515323d3
Import easy-fs in os && change easy-fs to no_std mode.
4 years ago
Yifan Wu
84900e8b94
Remove block device test.
4 years ago
Yifan Wu
914f042617
Add sdcard driver based on k210-rust crates && adjust clock freq.
4 years ago