Compare commits

...

4 Commits

Author SHA1 Message Date
~erin 7c04c6f8ac
Fix link 2023-04-18 09:22:38 -04:00
~erin 2ec8c62908
More async notes 2023-04-18 09:21:55 -04:00
~erin 7711c553b2
Basic debugging outline 2023-04-18 08:45:24 -04:00
~erin 4565edf679
figlet-rs note 2023-04-18 08:33:23 -04:00
7 changed files with 26 additions and 2 deletions

View File

@ -12,6 +12,10 @@
- [Filesystem](development/design/filesystem.md)
- [Configuring a Build Environment](development/environment.md)
- [Development Workflow](development/workflow.md)
- [Debugging](debugging/README.md)
- [GDB]()
- [Logging]()
- [Performance Profiling]()
# User Guide
- [Using the OS](user/README.md)

7
src/debugging/README.md Normal file
View File

@ -0,0 +1,7 @@
# Debugging
Debugging code and understanding what's going wrong is highly important, especially in a complex setup such as this.
We will try to make it as easy as possible, with tools such as [tracing](https://lib.rs/crates/tracing).
There are several external tools that can be used as well.

1
src/debugging/gdb.md Normal file
View File

@ -0,0 +1 @@
# GDB

View File

@ -34,7 +34,7 @@ The source for this site, and our [website](https://mercury.the-system.eu.org) i
All `crates`/`libraries` are in a `no-std` environment. This means we only have access to the [libcore](https://doc.rust-lang.org/core/) functionality.
However, we will be using the `alloc` crate to access the heap, and`collections` to have access to data structures like `Vec`.
We should, however, have basic support for [async](https://ferrous-systems.com/blog/stable-async-on-embedded/).
We should, however, have basic support for [async](https://ferrous-systems.com/blog/stable-async-on-embedded/) and [threading]() in `core::`.
## Learning
Before jumping in, I highly recommend learning some stuff abotu **Rust** and embedded development with it.
@ -45,6 +45,7 @@ A thorough series of steps might be:
4. Take a quick look through the [Embedded Rust Book](https://docs.rust-embedded.org/book/intro/index.html)
5. Read the [RISC-V Guide](https://github.com/mikeroyal/RISC-V-Guide)/[RISC-V Bytes](https://danielmangum.com/categories/risc-v-bytes/) to learn more about the **RISC-V** architecture
6. Read the OSDev Wiki entries on [Microkernels](https://wiki.osdev.org/Microkernel) and [Message Passing](https://wiki.osdev.org/Message_Passing)
7. Read the [Async Book](https://rust-lang.github.io/async-book/01_getting_started/01_chapter.html)
Additionally you might want to learn about **Vulkan** if you're going to be hacking on the [GUI](/development/design/gui.md):
1. Go through the [Vulkan Tutorial (Rust)](https://kylemayes.github.io/vulkanalia/introduction.html) to learn some of the basics

View File

@ -24,6 +24,8 @@ We may also use [Rhai](https://lib.rs/crates/rhai) for scripting, for easy user
It will also use a global configuration - similar to **Guix** or **NixOS**. This allows it to be easily setup.
It will likely use [RON](https://lib.rs/crates/ron) for configuration.
**Note:** [figlet-rs](https://lib.rs/crates/figlet-rs) can be used for cool `ASCII` art!
Further design decisions are gone into detail in the next few chapters.
## Code Organization

View File

@ -10,6 +10,15 @@ Afterwards, we can put focus towards building out various features.
Support for multiple targets will be done via `Cargo.toml` targets, cross-compilation, and [conditional compilation](https://doc.rust-lang.org/reference/conditional-compilation.html).
## Concurrency
For performance, we will be using various concurrency programming techniques.
For **IO** intensive operations, `async` will be used.
This will include the [filesystem](/development/design/filesystem.md), [actors](/development/design/actor.md), and [GUI](/development/design/gui.md).
**CPU**-bound operations are better suited to individual `threads`, however.
This might include operations like *hashing*, *encryption*, and *indexing*.
## Boot Process
*To be implemented*

View File

@ -11,4 +11,4 @@
## Isolation
*To-Do*
[^hmac]: https://cryptobook.nakov.com/mac-and-key-derivation
[^hmac]: [MAC and Key Derivation](https://cryptobook.nakov.com/mac-and-key-derivation)