mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Compare commits
4 Commits
post-3.1
...
88329503ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88329503ad | ||
|
|
7ff6510352 | ||
|
|
eb78b1fb9b | ||
|
|
2dc10d0198 |
9
Cargo.lock
generated
9
Cargo.lock
generated
@@ -2,6 +2,15 @@
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "bootloader_api"
|
||||
version = "0.11.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ec2d46a2b93edb1383023db2a95fc9480847a6e137c60e214f3fb62727f028da"
|
||||
|
||||
[[package]]
|
||||
name = "kernel"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bootloader_api",
|
||||
]
|
||||
|
||||
@@ -6,6 +6,7 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bootloader_api = "0.11.0"
|
||||
|
||||
[profile.dev]
|
||||
panic = "abort"
|
||||
|
||||
17
README.md
17
README.md
@@ -1,23 +1,16 @@
|
||||
# Blog OS (Minimal Kernel)
|
||||
# Blog OS (Booting)
|
||||
|
||||
[](https://github.com/phil-opp/blog_os/actions?query=workflow%3A%22Code%22+branch%3Apost-3.1)
|
||||
[](https://github.com/phil-opp/blog_os/actions?query=workflow%3A%22Code%22+branch%3Apost-3.2)
|
||||
|
||||
This repository contains the source code for the [Minimal Kernel][post] post of the [Writing an OS in Rust](https://os.phil-opp.com) series.
|
||||
This repository contains the source code for the [Booting][post] post of the [Writing an OS in Rust](https://os.phil-opp.com) series.
|
||||
|
||||
[post]: https://os.phil-opp.com/minimal-kernel
|
||||
[post]: https://os.phil-opp.com/booting
|
||||
|
||||
**Check out the [master branch](https://github.com/phil-opp/blog_os) for more information.**
|
||||
|
||||
## Building
|
||||
|
||||
- Install the `x86_64-unknown-none` target using rustup:
|
||||
```
|
||||
rustup target add x86_64-unknown-none
|
||||
```
|
||||
- Build by running:
|
||||
```
|
||||
cargo build --target x86_64-unknown-none
|
||||
```
|
||||
TODO
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
bootloader_api::entry_point!(kernel_main);
|
||||
|
||||
fn kernel_main(bootinfo: &'static mut bootloader_api::BootInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user