kernel/README.md

35 lines
1.6 KiB
Markdown
Raw Normal View History

2024-05-13 18:31:37 -04:00
---
created: 2024-05-13T14:28:49-05:00
2024-05-19 18:42:50 -04:00
modified: 2024-05-19T17:41:01-05:00
2024-05-13 18:31:37 -04:00
---
2024-05-14 12:12:11 -04:00
A kernel for RISC-V written in Rust. Currently focused on running on QEMU generic riscv64, advice and assistance welcome & encouraged.
2024-05-19 18:42:50 -04:00
# Progress
2024-05-13 18:31:37 -04:00
2024-05-19 18:42:50 -04:00
* **2024-05-19:** As of right now, the basic "stuff" for initializing the kernel is there. The diagram below shows what I'm thinking as far as what the init process should be. This is what I'm currently working on implementing, and I will update this chart (and prettify it) more
2024-05-13 18:39:00 -04:00
2024-05-19 18:42:50 -04:00
![Flowchart (tentatively) showing the plan for the kernel's initialization process. On the left is hart 0, the main hardware thread, and on the right is hart 1...n, all other hardware threads. All harts will set the global, stack, and thread pointers, disable paging, and set the mstatus and mepc control status registers, before doing their own independent init processes. Hart 0 will disable interrupts and enter the primary initialization function, kinit, before starting the first user process. Other harts will enable interrupts, do their own init, kinit_hart, then wait for a software inter-processor interrupt.](20240519-kernel_init_diagram.png)
2024-05-13 22:37:28 -04:00
2024-05-19 18:42:50 -04:00
# Research and implement
2024-05-14 12:12:11 -04:00
- [ ] Basics
- [ ] Processes
2024-05-19 18:42:50 -04:00
- [ ] Virtual address spaces, page tables
2024-05-14 12:12:11 -04:00
- [ ] Files, directories
- [ ] Pipes
- [ ] Multitasking, time-slicing
- [ ] Syscalls
- [ ] CPU cache
- [ ] User authentication, login
- [ ] File protection, permissions
- [ ] Mountable file systems
- [ ] Paging to disk
- [ ] Sockets, network support
- [ ] Interprocess communication
- [ ] Device drivers
- [ ] User applications
2024-05-19 18:42:50 -04:00
# Resources
See [RESOURCES.md](/RESOURCES.md)