Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

309554042 lab6 #176

Open
wants to merge 24 commits into
base: 309554042
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0fa291a
Finish dtb parser, and remove some unnecessary code from lab5
JusticeLeee May 16, 2022
b537a60
Sync lab5 to lab6
JusticeLeee May 17, 2022
f214f7d
Add identity paging and kernel space mapping
JusticeLeee May 17, 2022
dc0b86e
Add mapping with finer granularity
JusticeLeee May 18, 2022
68c9271
Add user space paging, revisit exec and context switch
JusticeLeee May 25, 2022
d63aa9d
Sync test program between lab5 & lab6 for comparison
JusticeLeee May 25, 2022
e6dfc55
Finish fork, and mailbox user_pa -> kernel_pa transfer
JusticeLeee May 25, 2022
26aee7e
Map 0x3c0~0x3c3 for mailbox buffer
JusticeLeee May 25, 2022
ed4e9f6
Add two user program for testing fork and mailbox call, all success, …
JusticeLeee May 25, 2022
349e906
Add vc memory in both parent and child, change access policy to USER_RW
JusticeLeee May 26, 2022
f694dfd
Find that user shell need excute after child mbox_call in qemu, but d…
JusticeLeee May 26, 2022
972e6ad
Need turn to user_va to kernel_pa since mbox_call no reference address
JusticeLeee May 30, 2022
d6548b2
Sync lab5 to lab7 // Don't need VA in this lab
JusticeLeee May 30, 2022
dece057
[Final]Finish final project, GC when free_block_number == 0 and free_…
JusticeLeee Jun 15, 2022
1590726
[7]Finiish basic 1 ~ 3
JusticeLeee Jun 17, 2022
f5313a5
[7]Finish all basic
JusticeLeee Jun 17, 2022
24e0edd
[7]Finish advanced 1
JusticeLeee Jun 18, 2022
8382bea
[7]Add backspace in kernel shell
JusticeLeee Jun 18, 2022
de92a0f
[8]init
JusticeLeee Jun 19, 2022
6ab785e
[8]Finish FAT32 lookup&read, create&write basic1&2 pass
JusticeLeee Jun 20, 2022
c6d9074
[8]Use writeblock write new file's dentry, for sd_card in real machine
JusticeLeee Jun 21, 2022
9062675
[7]Finish advanced 1, use mbox_call get lba, and write color to it
JusticeLeee Jun 22, 2022
3a198ed
Summary OSC2022 Homework
JusticeLeee Jun 22, 2022
5d67a02
Remove some unnecessary files
JusticeLeee Jun 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6,963 changes: 6,963 additions & 0 deletions Final/log.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Final/make_ioctl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gcc -Wall ssd_fuse.c `pkg-config fuse3 --cflags --libs` -D_FILE_OFFSET_BITS=64 -o ssd_fuse

6 changes: 6 additions & 0 deletions Final/make_ssd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gcc -Wall ssd_fuse.c `pkg-config fuse3 --cflags --libs` -D_FILE_OFFSET_BITS=64 -o ssd_fuse
gcc -Wall ssd_fuse_dut.c -o ssd_fuse_dut
fusermount -zu /tmp/ssd
rm -rf /tmp/ssd
mkdir /tmp/ssd
make run
12 changes: 12 additions & 0 deletions Final/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
all:
gcc -Wall ssd_fuse.c `pkg-config fuse3 --cflags --libs` -D_FILE_OFFSET_BITS=64 -o ssd_fuse
gcc -Wall ssd_fuse_dut.c -o ssd_fuse_dut

clean:
fusermount -zu /tmp/ssd
rm -rf /tmp/ssd
mkdir /tmp/ssd

run:
./ssd_fuse -d /tmp/ssd

Loading