62 Commits

Author SHA1 Message Date
ccckmit
70443b0ab3 simplify start.s 2023-05-24 11:42:54 +08:00
ccckmit
873150ceb9 simplify start.s 2023-05-24 11:38:59 +08:00
ccckmit
b69981d0e1 simplify start.s 2023-05-24 11:30:48 +08:00
陳鍾誠
4b4df222e1 Create bug.md 2023-05-18 14:29:49 +08:00
Ian Chen
0d48649993 Merge pull request #16 from x653/patch-1
Update os.c
2022-02-19 22:32:43 +08:00
x653
62810c1a83 Update os.c
Hey there,
I implemented risc-v in fpga and try to port your mini-os to my fpga.
02_ContextSwitch did not work correctly, because the stackpointer is not word alligned after context switch.
Changing uint8_t to word size (32 bit) solved the problem, because &task0_stack[STACK_SIZE-1] should be the last word of the stack, instead of the last byte of the stack.
Some hardware may ignore the two least significant bits of address when accessing a 32 bit word.
So uint8_t might work also.
2022-02-19 13:36:44 +01:00
ccckmit
303ca17a1d timer interrupt simplify 2021-11-09 10:34:15 +08:00
ccckmit
6ef6ed2dea Revert "Revert "simplify and test pass""
This reverts commit 05e15d2a17.
2021-11-09 10:32:07 +08:00
ccckmit
05e15d2a17 Revert "simplify and test pass"
This reverts commit dd146959a6.
2021-11-09 10:30:38 +08:00
ccckmit
dd146959a6 simplify and test pass 2021-11-09 10:27:10 +08:00
ccckmit
aa46e78232 add A1-Input 2021-11-01 09:45:59 +08:00
ccckmit
0ce56608cc add A1-Input 2021-11-01 09:38:50 +08:00
陳鍾誠
3fcd134a21 Merge pull request #14 from austin362667/master
invoking a mini syscall from M-mode

> Good Job
2021-09-12 09:35:53 +08:00
Austin
d523d93b4b update md of ch10 2021-09-08 10:40:22 +08:00
Austin
a7412dd9b2 add md of ch10 2021-09-08 10:37:38 +08:00
Austin
8a8776cab8 add ch10 2021-09-08 10:31:37 +08:00
Ian Chen
72bc6f247c Update README.md 2021-08-11 14:26:56 +08:00
Ian Chen
85c027fdcc Merge pull request #13 from ianchen0119/master
update the document
2021-08-09 18:58:28 +08:00
ianchen0119
75f5fdf402 update the document 2021-08-09 13:49:59 +08:00
Ian Chen
9210e93b9a Merge pull request #12 from ianchen0119/feat/memoryAlloc
Add memory allocator
2021-08-08 16:24:57 +08:00
ianchen0119
9d2d0e3064 add the doc of ch9 2021-08-08 16:24:15 +08:00
ianchen0119
2fe5bc8287 modified memory allocator and add references 2021-08-07 23:22:50 +08:00
ianchen0119
0f79689961 add ch9 2021-08-07 22:19:30 +08:00
Ian Chen
31dd8cbab6 Merge pull request #11 from ianchen0119/feat/block_driver
Feat/block driver
2021-08-06 11:11:04 +08:00
ianchen0119
773cc9c28d update the readme 2021-08-06 00:33:03 +08:00
ianchen0119
741b8f0549 VirtIO features is completed! 2021-08-06 00:30:17 +08:00
ianchen0119
1ecfd9c15e modify the block device driver 2021-07-01 18:49:25 +08:00
ianchen0119
f3cdea2b82 Add the exception's msg in trap_handler 2021-06-28 18:01:03 +08:00
ianchen0119
42410f8ede refactor 2021-06-28 17:47:31 +08:00
ianchen0119
f7230c0a8a update string.h and add virtio_tester() 2021-06-24 20:43:46 +08:00
ianchen0119
6a95acf8ba Merge branch 'feat/block_driver' of https://github.com/ianchen0119/mini-riscv-os into feat/block_driver 2021-06-24 19:30:00 +08:00
ianchen0119
ed35a47df4 virio_disk_init() work is finished 2021-06-24 19:29:37 +08:00
Ian Chen
b3d23514b6 Merge branch 'cccriscv:master' into feat/block_driver 2021-06-24 17:55:25 +08:00
ianchen0119
90199d7967 Add 08-doc and modified the device driver (On going...) 2021-06-24 17:53:37 +08:00
陳鍾誠
5b60aa03fd Merge pull request #10 from ianchen0119/feat/getchar
getc() supported!
2021-06-21 18:09:15 +08:00
ianchen0119
07ab6ae0b3 Add the block device driver, but hasn't been tested yet. 2021-06-21 17:58:29 +08:00
ianchen0119
3db6f7ecf8 Doc of ch7 is finished! 2021-06-20 15:18:58 +08:00
ianchen0119
96d5ec55b2 fix the bug related to uart settings 2021-06-20 14:41:22 +08:00
ianchen0119
0c81563e5e External_interruption can be detected, but irq is wrong 2021-06-20 14:07:50 +08:00
ianchen0119
a72ea93d77 getc() supported! 2021-06-20 00:41:33 +08:00
陳鍾誠
2aa0bc8129 Merge pull request #9 from ianchen0119/feat/spinlock
Add the spinlock feature!

太棒了!感謝你!
2021-06-18 14:36:49 +08:00
ianchen0119
7a682c9ef3 06-Spinlock.md was finished 2021-06-18 13:00:13 +08:00
ianchen0119
551fd56d69 Add the new other type of lock 2021-06-18 11:55:09 +08:00
ianchen0119
ea5b0a654f Add the spinlock feature! 2021-06-17 23:00:55 +08:00
陳鍾誠
6d535cf161 Merge pull request #7 from ianchen0119/master
fix the bug in trap_handler()
2021-06-15 15:27:18 +08:00
ianchen0119
6c78388205 fix typo 2021-06-14 22:37:49 +08:00
ianchen0119
adb877d453 fix the bug in trap_handler() 2021-06-14 21:07:05 +08:00
陳鍾誠
987a8dc9a5 Merge pull request #6 from ianchen0119/master
Modify the interrupt vector
2021-06-14 16:02:02 +08:00
ianchen0119
a108224617 modify the 05-Preemptive.md 2021-06-13 12:38:59 +08:00
ianchen0119
28dd4d6f1a Modify the interrupt vector 2021-06-12 15:50:13 +08:00