This commit is contained in:
Able 2022-11-24 03:35:55 -06:00
parent 2114b9a346
commit 65bb92e02b
4 changed files with 10 additions and 27 deletions

View file

@ -1,16 +1,6 @@
[boot]
system_processes = []
user_processes = ["shell"]
[logging] [logging]
enabled = true enabled = true
level = "Trace" level = "Trace"
log_to_serial = true log_to_serial = true
log_to_vterm = false log_to_vterm = false
filter = ["ableos::ps2_mouse", "ableos::vterm"] filter = ["ableos::ps2_mouse", "ableos::vterm", "ableos::devices::pci"]
[tests]
run_tests = false
run_demos = false
run_shader_tests = false

View file

@ -19,9 +19,7 @@ pub enum LogLevel {
#[derive(Serialize, Debug, Deserialize)] #[derive(Serialize, Debug, Deserialize)]
pub struct KernelConfig { pub struct KernelConfig {
pub boot: BootConfig,
pub logging: LoggingConfig, pub logging: LoggingConfig,
pub tests: TestsConfig,
} }
impl KernelConfig { impl KernelConfig {
@ -56,15 +54,3 @@ pub struct LoggingConfig {
pub level: LogLevel, pub level: LogLevel,
pub filter: Vec<String>, pub filter: Vec<String>,
} }
#[derive(Serialize, Debug, Deserialize)]
pub struct TestsConfig {
pub run_tests: bool,
pub run_demos: bool,
pub run_shader_tests: bool,
}
#[derive(Serialize, Debug, Deserialize)]
pub struct BootConfig {
pub system_processes: Vec<String>,
pub user_processes: Vec<String>,
}

7
base/boot/kernel.toml Normal file
View file

@ -0,0 +1,7 @@
[logging]
enabled = true
level = "Trace"
log_to_serial = true
log_to_vterm = false
filter = ["ableos::ps2_mouse", "ableos::vterm", "ableos::devices::pci"]

View file

@ -136,7 +136,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"", "",
"", "",
Default::default(), Default::default(),
"ext4", "ext2",
[("take-ownership", true.into())].into_iter().collect(), [("take-ownership", true.into())].into_iter().collect(),
)?; )?;