Commit Graph

28 Commits

Author SHA1 Message Date
Yu Chen
6906508d6c add cargo fmt in Makefile, and exec make fmt 2022-05-20 08:50:01 +08:00
Yifan Wu
8b8e48fd6d Fix #69. 2022-05-13 01:01:57 -07:00
Yifan Wu
7408b1a7b2 Add boards/ && cargo clippy 2022-01-24 23:09:54 -08:00
Yifan Wu
0d189e9ad7 Cargo fmt 2022-01-22 11:54:09 -08:00
Yifan Wu
2f5cff7e21 cargo clippy 2022-01-22 11:53:18 -08:00
Yifan Wu
a97e29fdb1 Now PageTable::unmap calls PageTable::find_pte instead of PageTable::find_pte_create. 2022-01-13 17:18:16 -08:00
Yifan Wu
11cdc5f2e6 Bump to rust nightly-2022-01-01, feature global_asm,asm->stable 2022-01-01 02:29:54 -08:00
Yifan Wu
940e88a002 Now construction of PA/VA only uses 56/39 bits. 2021-11-13 03:06:18 -08:00
Yifan Wu
315e61da1a Rm spin::Mutex except for easy-fs & add new test huge_write & flush cache to disk after a write transaction 2021-07-21 19:10:04 +08:00
Yifan Wu
90d351bfe8 Support cmdline_args when sys_exec. 2021-02-26 12:06:55 +08:00
Yifan Wu
b8f1db4aa3 Fix overflow bug when ceiling va 2021-02-24 03:50:33 +08:00
Yifan Wu
9d7882a73d Do not clone KERNEL_SPACE in mm::init 2021-01-27 07:30:27 +08:00
Yifan Wu
1bafe9615f Fix virtio_phys_to_virt. Now we can load app from disk on qemu/k210! 2020-12-20 08:46:27 +08:00
Yifan Wu
914f042617 Add sdcard driver based on k210-rust crates && adjust clock freq. 2020-12-16 15:19:29 +08:00
Yifan Wu
f754326d0a virtio-blk worked. 2020-12-16 10:18:38 +08:00
Yifan Wu
8e178c0080 Pipe OK. 2020-12-14 16:18:33 +08:00
Yifan Wu
2e6734027d Rewrite Stdin/Stdout 2020-12-13 15:07:19 +08:00
Yifan Wu
84b10893d4 forktree worked with depth=3 on k210 platform. 2020-12-11 16:14:14 +08:00
Yifan Wu
244c0ee84d Handle backspace for k210/qemu platform && Add lots of user tests. 2020-12-11 01:44:07 +08:00
Yifan Wu
3642f9c56d Implement many process syscalls. 2020-12-10 11:57:26 +08:00
Yifan Wu
eddbc8954c Implement sys_read && allocate pid and kernel stack dynamically. 2020-12-08 17:17:28 +08:00
Yifan Wu
949f2095bb ch4 ok on qemu/k210 && Remove some comments. 2020-12-08 01:35:08 +08:00
Yifan Wu
8ee3671269 Split kernel/user trap handler && Fix user tests. 2020-12-07 18:57:23 +08:00
Yifan Wu
f54573ae15 Fetch buffer in user space as a Vec. 2020-12-07 18:07:19 +08:00
Yifan Wu
064f1cb5cb Fetching buffer arguments from user space. 2020-12-06 13:56:13 +08:00
Yifan Wu
0011fe9477 Kernel remapped. 2020-12-04 17:23:35 +08:00
Yifan Wu
1256085d36 Frame Allocator OK. 2020-12-03 10:40:30 +08:00
Yifan Wu
2fd70b0ff4 Heap test passed on k210/qemu, heap size = 3M. 2020-12-02 10:32:26 +08:00