├── .gitignore ├── .spike.cfg ├── LICENSE.txt ├── Makefile ├── README.md ├── kernel ├── config.h ├── elf.c ├── elf.h ├── kernel.c ├── kernel.lds ├── machine │ ├── mentry.S │ └── minit.c ├── process.c ├── process.h ├── riscv.h ├── strap.c ├── strap.h ├── strap_vector.S ├── syscall.c └── syscall.h ├── spike_interface ├── atomic.h ├── dts_parse.c ├── dts_parse.h ├── spike_file.c ├── spike_file.h ├── spike_htif.c ├── spike_htif.h ├── spike_memory.c ├── spike_memory.h ├── spike_utils.c └── spike_utils.h ├── user ├── app_helloworld.c ├── user.lds ├── user_lib.c └── user_lib.h ├── util ├── functions.h ├── load_store.S ├── snprintf.c ├── snprintf.h ├── string.c ├── string.h └── types.h ├── 挑战题答案.zip └── 操作系统内核实验(2022年春).pdf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/.gitignore -------------------------------------------------------------------------------- /.spike.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/.spike.cfg -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/README.md -------------------------------------------------------------------------------- /kernel/config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/config.h -------------------------------------------------------------------------------- /kernel/elf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/elf.c -------------------------------------------------------------------------------- /kernel/elf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/elf.h -------------------------------------------------------------------------------- /kernel/kernel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/kernel.c -------------------------------------------------------------------------------- /kernel/kernel.lds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/kernel.lds -------------------------------------------------------------------------------- /kernel/machine/mentry.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/machine/mentry.S -------------------------------------------------------------------------------- /kernel/machine/minit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/machine/minit.c -------------------------------------------------------------------------------- /kernel/process.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/process.c -------------------------------------------------------------------------------- /kernel/process.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/process.h -------------------------------------------------------------------------------- /kernel/riscv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/riscv.h -------------------------------------------------------------------------------- /kernel/strap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/strap.c -------------------------------------------------------------------------------- /kernel/strap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/strap.h -------------------------------------------------------------------------------- /kernel/strap_vector.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/strap_vector.S -------------------------------------------------------------------------------- /kernel/syscall.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/syscall.c -------------------------------------------------------------------------------- /kernel/syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/kernel/syscall.h -------------------------------------------------------------------------------- /spike_interface/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/atomic.h -------------------------------------------------------------------------------- /spike_interface/dts_parse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/dts_parse.c -------------------------------------------------------------------------------- /spike_interface/dts_parse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/dts_parse.h -------------------------------------------------------------------------------- /spike_interface/spike_file.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_file.c -------------------------------------------------------------------------------- /spike_interface/spike_file.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_file.h -------------------------------------------------------------------------------- /spike_interface/spike_htif.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_htif.c -------------------------------------------------------------------------------- /spike_interface/spike_htif.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_htif.h -------------------------------------------------------------------------------- /spike_interface/spike_memory.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_memory.c -------------------------------------------------------------------------------- /spike_interface/spike_memory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_memory.h -------------------------------------------------------------------------------- /spike_interface/spike_utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_utils.c -------------------------------------------------------------------------------- /spike_interface/spike_utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/spike_interface/spike_utils.h -------------------------------------------------------------------------------- /user/app_helloworld.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/user/app_helloworld.c -------------------------------------------------------------------------------- /user/user.lds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/user/user.lds -------------------------------------------------------------------------------- /user/user_lib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/user/user_lib.c -------------------------------------------------------------------------------- /user/user_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/user/user_lib.h -------------------------------------------------------------------------------- /util/functions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/functions.h -------------------------------------------------------------------------------- /util/load_store.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/load_store.S -------------------------------------------------------------------------------- /util/snprintf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/snprintf.c -------------------------------------------------------------------------------- /util/snprintf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/snprintf.h -------------------------------------------------------------------------------- /util/string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/string.c -------------------------------------------------------------------------------- /util/string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/string.h -------------------------------------------------------------------------------- /util/types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/util/types.h -------------------------------------------------------------------------------- /挑战题答案.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/挑战题答案.zip -------------------------------------------------------------------------------- /操作系统内核实验(2022年春).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremyHua1931/2022-12-PKE_WHU/HEAD/操作系统内核实验(2022年春).pdf --------------------------------------------------------------------------------