Commit Graph

193 Commits

Author SHA1 Message Date
Yifan Wu
ce32c3b1f3 cargo fmt && use rustsbi as the bootl 2023-03-30 22:53:41 +08:00
yufeng
7a87ce7cfa fix warnnings 2023-03-30 22:20:01 +08:00
yufeng
2a4c7c2cc3 add tcp support and tcp_simplehttp app 2023-03-30 22:19:57 +08:00
Yifan Wu
3897e6e50f fix CE 2023-03-29 23:17:34 +08:00
Yifan Wu
ca30fac18b fix ch9 && remove some warnings 2023-03-29 22:47:44 +08:00
Yifan Wu
3d3d702b34 fix ch8 2023-03-29 22:47:43 +08:00
Yifan Wu
dd02ef7f6e fix ch5 2023-03-29 22:47:42 +08:00
Yifan Wu
a0e8c673a5 Use error! instead of println! when panicking 2023-03-29 22:47:42 +08:00
Yifan Wu
02fb65711e Using sbi-rt instead of asm && update rustsbi-qemu to latest
rustsbi-qemu version: a4f0bbe44d9f2f1069a9e5becd09f291e542852c
2023-03-29 22:47:39 +08:00
Yifan Wu
5fe234d2d2 Fix Compilation Error 2023-02-08 11:15:20 +08:00
Yifan Wu
abc19f593d
Merge branch 'main' into fix/kstack-leak 2023-02-08 11:08:27 +08:00
yufeng
fc173e5344 Merge ch9 2023-02-06 19:51:24 +08:00
yufeng
44bf23ee88 add net support 2023-02-06 19:21:43 +08:00
yufeng
fa2d574c3b use frame_alloc_more in VirtioHal 2023-02-06 19:15:46 +08:00
yufeng
31b1ba428a add alloc_more 2023-02-06 19:12:45 +08:00
Yifan Wu
948ccff15d update condvar-related testcases. 2023-02-01 20:46:07 +08:00
Yifan Wu
8c09e0537e add_task->wakeup_task 2023-01-20 01:54:13 +08:00
Yifan Wu
29585b7982 TaskStatus::Blocking->Blocked 2023-01-19 13:55:17 +08:00
Yifan Wu
f4b856741b Decode input events in inputdev_event.rs 2023-01-12 00:21:57 -08:00
Yifan Wu
b77f2d6999 Added MapType::Linear for framebuffer mapping & cargo fmt 2023-01-11 19:37:36 -08:00
Yu Chen
b262781203 fix bug in impl Drop for FrameTracker, for the correctly mapping/unmapping display buffer in app 2023-01-10 16:29:36 +08:00
Yu Chen
fbb592369b Add snake gui app and update os/usr parts. Now snake can run! 2023-01-08 22:41:41 +08:00
Yu Chen
c3ce372404 add get input_dev events in user app, but still have some problems 2023-01-07 23:35:11 +08:00
Yu Chen
9d59a8271f clean os/user codes for graph show 2023-01-07 19:14:20 +08:00
Yu Chen
737d07db13 simple gui app can run now! 2023-01-07 16:11:41 +08:00
Yu Chen
d56c5d1229 update move_rect Fn 2023-01-03 18:34:45 +08:00
Yu Chen
772d532563 update code, now '-bios none' can get the same result as ch9 2023-01-03 10:05:40 +08:00
Yu Chen
7c9a58192a in gdb mode, OK. For the safety of TIMER_SCRATCH, put clear_bss Fn in rust_start. and explicitly UART.init in rust_main. 2023-01-03 09:50:56 +08:00
Yu Chen
cd2e2307d2 explicitly UART.init() in rust_main 2023-01-03 09:32:36 +08:00
Yu Chen
a92ded6e1f temp stage2:add pmpaddr0/pmpcfg0 setup 2023-01-03 08:45:00 +08:00
Yu Chen
a33a235acf temp stage 2023-01-02 20:06:03 +08:00
Yu Chen
1722d0d4d7 run in qemu -bios none ENV 2023-01-02 11:28:06 +08:00
Yifan Wu
95d853d8d2 Fix pipe impl 2022-12-23 11:23:54 +08:00
Yifan Wu
fd0db55621 Remove a dependency 2022-12-19 04:48:45 -08:00
Yifan Wu
20d4f5fe08 feat: simple drawing board GUI 2022-12-19 03:55:58 -08:00
Yifan Wu
d7e5d2f630 Remove K210 support. 2022-12-13 23:52:27 +08:00
Yifan Wu
414dbb3a09 in entry.asm: boot_stack->boot_stack_lower_bound 2022-11-29 10:33:55 +08:00
Xuewei Niu
d7ccea8f18 fix(os): fix kstack leak issues
The kstack_id is not recycled when KernelStack is dropped, which leads to kstack
leak issue. Ch8 branch, and branches after that, are also affected by this
issue.

Signed-off-by: Xuewei Niu <justxuewei@apache.org>
2022-10-19 17:30:49 +08:00
Yifan Wu
c6b262fc86 Lock virtio-drivers version at 4ee80e5 2022-09-05 02:33:59 -07:00
Yifan Wu
648907524e Lock virtio-drivers version at 4ee80e5 2022-09-05 02:33:37 -07:00
Yifan Wu
53289a6d75 Merged PR #87 2022-09-02 02:58:26 -07:00
Yifan Wu
453a08fc0c Merged PR #87 2022-09-02 02:54:55 -07:00
Yu Chen
022b5bab6b udpate rust-toolchain: nightly-2022-07-20, cargo-utils 0.36 2022-07-25 11:48:01 +08:00
Yu Chen
a2f3dc34f7 udpate rust-toolchain: nightly-2022-07-20, cargo-utils 0.36 2022-07-25 11:47:07 +08:00
Yu Chen
aee2000f15 make build BOARD=k210 sucessfully 2022-06-23 22:23:49 +08:00
Yu Chen
a72e2e4c41 update Makefile for CI autotest 2022-06-23 00:11:44 +08:00
Yu Chen
d5ccc3d700 add const VIRTGPU_XRES, VIRTGPU_YRES in boards/qemu.rs for X*Y resolution in virtio_gpu 2022-06-22 23:55:15 +08:00
Yu Chen
136d475bc5 change virtio-gpu resolution from 1024x768(qemu-5.2 default res) to 1280x800(qemu-7.0 default res) 2022-06-22 23:39:25 +08:00
Yu Chen
a30ec73d55 make gui ; make gui TEST=1 (for autotest) can work correctly. But the os kernel has a little bug on drawing screen for gui app 2022-06-22 00:40:32 +08:00
Yu Chen
bc2aec9764 add VIRT_TEST MMIO range (0x0010_0000, 0x00_2000) 2022-06-22 00:23:33 +08:00