Commit 3beca331 authored by Nifou's avatar Nifou

ObsidianOS v0.0.1 is released!

parent 931b705a
......@@ -82,7 +82,7 @@ dependencies = [
[[package]]
name = "obsidianos-kernel"
version = "0.0.0"
version = "0.0.1"
dependencies = [
"bit_field 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
......
[package]
name = "obsidianos-kernel"
version = "0.0.0"
version = "0.0.1"
authors = ["Nifou <nfouquet@mailfence.com>"]
edition = "2018"
......
......@@ -157,15 +157,11 @@ pub extern "C" fn kmain(info_addr: usize) {
.expect("Memory map tag required")
.memory_areas();
let elf_sections_tag = boot_info
.elf_sections_tag()
.expect("cannot get elf sections tag");
let multiboot_start = boot_info.start_address() as u64;
let multiboot_end = boot_info.end_address() as u64;
println!("Initialize components...");
init(areas, elf_sections_tag, multiboot_start, multiboot_end);
init(areas, multiboot_start, multiboot_end);
println!("Run tests");
serial::test_serial();
......@@ -190,11 +186,7 @@ pub extern "C" fn kmain(info_addr: usize) {
.expect("file not found")
);
println!("Test ELF loading");
let binary = initfs::INITFS
.get_binary_file(String::from("/bin/hello"))
.expect("file not found");
elf::load(binary);
elf::load(String::from("/bin/hello"));
println!("Tests passed!");
exit_qemu(QemuExitCode::Success);
......
......@@ -30,7 +30,7 @@ impl<'a> Syscall<'a> {
match code {
ARCH_SET_FS => {
unsafe { x86::msr::wrmsr(x86::msr::IA32_FS_BASE, addr as u64); }
FsBase::write(VirtAddr::new(addr as u64));
},
_ => (),
}
......
......@@ -53,6 +53,9 @@ rustup component add rust-src
cargo install xargo
xargo --version
# Add the musl target
rustup target add x86_64-unknown-linux-musl
# Run tests
make test_ci
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment