-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9542758
commit c34e0b6
Showing
54 changed files
with
2,392 additions
and
247 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[workspace] | ||
members = [ | ||
"usb", | ||
"mmio", | ||
"shared", | ||
"init", | ||
"program", | ||
"kernel", | ||
"boot", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# TODO | ||
|
||
- Improve Framebuffer - dual or triple buffering | ||
- Move Framebuffer memory and DMA into kernel memory | ||
- Refactorize Process and scheduler | ||
- Remove tmp programs | ||
- Implements fork/exec syscalls | ||
- Improve mbox interface ('DMA' only) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[target.aarch64-unknown-none] | ||
rustflags = [ | ||
"-C", "link-arg=-Tprogram/link.ld", | ||
"-C", "link-arg=-Tinit/link.ld", | ||
"-C", "target-feature=-fp-armv8", | ||
"-C", "target-cpu=cortex-a53", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use alloc::boxed::Box; | ||
use crate::global::USB; | ||
use core::ops::Deref; | ||
use mmio::Mbox; | ||
|
||
pub fn setup_usb(v_mbox: &mut Mbox) { | ||
|
||
/*let mut device = Box::new_in(UsbDevice::new(), DmaAllocator); | ||
USB.init(v_mbox).expect("Issue with USB.init"); | ||
USB.start().expect("ISSUE with USB.start"); | ||
let request = Box::new_in(UsbDeviceRequest { | ||
requestType: 0x80, | ||
requestName: 6, | ||
value: 1 << 8, | ||
index: 0, | ||
length: 8 | ||
}, DmaAllocator); | ||
USB.send_request(device.as_mut(), request.as_ref()).expect("ISSUE with USB.attachRoot"); | ||
*/ | ||
|
||
|
||
USB.init().expect("USB.init failed"); | ||
|
||
debugln!("USB starting..."); | ||
} | ||
|
||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
all: lib | ||
lib: | ||
all: mmio | ||
mmio: | ||
cargo xrustc --target aarch64-unknown-none --release | ||
clean: | ||
cargo clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.