-
Notifications
You must be signed in to change notification settings - Fork 14
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
8c40da5
commit f07c3e3
Showing
40 changed files
with
338 additions
and
292 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
target | ||
!kernelCargo.lock | ||
!kernel/Cargo.lock | ||
kernel/.makeargs | ||
kernel/linker.ld | ||
kernel/src/platform/config.rs | ||
.idea | ||
.vscode | ||
.DS_Store |
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
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,8 @@ | ||
phys-memory-base = "0x4200_0000" | ||
phys-memory-size = "0x800_0000" # 128M | ||
kernel-base-paddr = "0x4200_0000" | ||
kernel-base-vaddr = "0xffff_ff80_4200_0000" | ||
mmio-regions = [ | ||
["0xfec00000", "0x1000"], # IO APIC | ||
["0xfee00000", "0x1000"], # Local APIC | ||
] |
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 @@ | ||
phys-memory-base = "0" | ||
phys-memory-size = "0x800_0000" # 128M | ||
kernel-base-paddr = "0x20_0000" | ||
kernel-base-vaddr = "0xffff_ff80_0020_0000" | ||
mmio-regions = [ | ||
["0xfec0_0000", "0x1000"], # IO APIC | ||
["0xfee0_0000", "0x1000"], # Local APIC | ||
] |
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 @@ | ||
phys-memory-base = "0x4000_0000" | ||
phys-memory-size = "0x800_0000" # 128M | ||
kernel-base-paddr = "0x4008_0000" | ||
kernel-base-vaddr = "0xffff_0000_4008_0000" | ||
mmio-regions = [ | ||
["0x0900_0000", "0x1000"], # PL011 UART | ||
["0x0800_0000", "0x2_0000"], # GICv2 | ||
] |
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,6 @@ | ||
pub const USER_ASPACE_BASE: usize = 0; | ||
pub const USER_ASPACE_SIZE: usize = 0xffff_ffff_f000; | ||
pub const KERNEL_ASPACE_BASE: usize = 0xffff_0000_0000_0000; | ||
pub const KERNEL_ASPACE_SIZE: usize = 0x0000_ffff_ffff_f000; | ||
|
||
pub const PHYS_VIRT_OFFSET: usize = 0xffff_0000_0000_0000; |
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,6 @@ | ||
pub const USER_ASPACE_BASE: usize = 0; | ||
pub const USER_ASPACE_SIZE: usize = 0x7fff_ffff_f000; | ||
pub const KERNEL_ASPACE_BASE: usize = 0xffff_ff80_0000_0000; | ||
pub const KERNEL_ASPACE_SIZE: usize = 0x0000_007f_ffff_f000; | ||
|
||
pub const PHYS_VIRT_OFFSET: usize = 0xffff_ff80_0000_0000; |
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 was deleted.
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
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.