Misspell run

pull/37/head
Andre Richter 5 years ago
parent 9ef49a9eb1
commit 9bebad4765
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

Binary file not shown.

@ -8,4 +8,4 @@
_start:
1: wfe // Wait for event
b 1b // In case an event happend, jump back to 1
b 1b // In case an event happened, jump back to 1

@ -37,12 +37,12 @@ diff -uNr 01_wait_forever/src/arch/aarch64/start.S 02_runtime_init/src/arch/aarc
_start:
-1: wfe // Wait for event
- b 1b // In case an event happend, jump back to 1
- b 1b // In case an event happened, jump back to 1
+ mrs x1, mpidr_el1 // Read Multiprocessor Affinity Register
+ and x1, x1, #3 // Clear all bits except [1:0], which hold core id
+ cbz x1, 2f // Jump to label 2 if we are core 0
+1: wfe // Wait for event
+ b 1b // In case an event happend, jump back to 1
+ b 1b // In case an event happened, jump back to 1
+2: // If we are here, we are core0
+ ldr x1, =_start // Load address of function "_start()"
+ mov sp, x1 // Set start of stack to before our code, aka first

Binary file not shown.

Binary file not shown.

@ -11,7 +11,7 @@ _start:
and x1, x1, #3 // Clear all bits except [1:0], which hold core id
cbz x1, 2f // Jump to label 2 if we are core 0
1: wfe // Wait for event
b 1b // In case an event happend, jump back to 1
b 1b // In case an event happened, jump back to 1
2: // If we are here, we are core0
ldr x1, =_start // Load address of function "_start()"
mov sp, x1 // Set start of stack to before our code, aka first

Binary file not shown.

Binary file not shown.

@ -11,7 +11,7 @@ _start:
and x1, x1, #3 // Clear all bits except [1:0], which hold core id
cbz x1, 2f // Jump to label 2 if we are core 0
1: wfe // Wait for event
b 1b // In case an event happend, jump back to 1
b 1b // In case an event happened, jump back to 1
2: // If we are here, we are core0
ldr x1, =_start // Load address of function "_start()"
mov sp, x1 // Set start of stack to before our code, aka first

@ -43,7 +43,7 @@ diff -uNr 03_hacky_hello_world/src/arch/aarch64/start.S 04_zero_overhead_abstrac
- and x1, x1, #3 // Clear all bits except [1:0], which hold core id
- cbz x1, 2f // Jump to label 2 if we are core 0
-1: wfe // Wait for event
- b 1b // In case an event happend, jump back to 1
- b 1b // In case an event happened, jump back to 1
-2: // If we are here, we are core0
- ldr x1, =_start // Load address of function "_start()"
- mov sp, x1 // Set start of stack to before our code, aka first

Binary file not shown.

Binary file not shown.

@ -434,7 +434,7 @@ diff -uNr 05_safe_globals/src/bsp/driver/bcm/bcm2xxx_pl011_uart.rs 06_drivers_gp
+ ]
+ ],
+
+ /// Interupt Clear Register
+ /// Interrupt Clear Register
+ ICR [
+ /// Meta field for all pending interrupts
+ ALL OFFSET(0) NUMBITS(11) []

Binary file not shown.

Binary file not shown.

@ -102,7 +102,7 @@ register_bitfields! {
]
],
/// Interupt Clear Register
/// Interrupt Clear Register
ICR [
/// Meta field for all pending interrupts
ALL OFFSET(0) NUMBITS(11) []

Binary file not shown.

Binary file not shown.

@ -102,7 +102,7 @@ register_bitfields! {
]
],
/// Interupt Clear Register
/// Interrupt Clear Register
ICR [
/// Meta field for all pending interrupts
ALL OFFSET(0) NUMBITS(11) []

@ -116,7 +116,7 @@ diff -uNr 07_uart_chainloader/src/arch/aarch64/time.rs 08_timestamps/src/arch/aa
+pub struct Timer;
+
+impl interface::time::Timer for Timer {
+ fn resoultion(&self) -> Duration {
+ fn resolution(&self) -> Duration {
+ Duration::from_nanos(NS_PER_S / (CNTFRQ_EL0.get() as u64))
+ }
+
@ -309,7 +309,7 @@ diff -uNr 07_uart_chainloader/src/interface.rs 08_timestamps/src/interface.rs
+ /// Timer functions.
+ pub trait Timer {
+ /// The timer's resolution.
+ fn resoultion(&self) -> Duration;
+ fn resolution(&self) -> Duration;
+
+ /// The uptime since power-on of the device.
+ ///
@ -382,7 +382,7 @@ diff -uNr 07_uart_chainloader/src/main.rs 08_timestamps/src/main.rs
+ println!("Booting on: {}", bsp::board_name());
+ println!(
+ "Architectural timer resolution: {} ns",
+ arch::timer().resoultion().as_nanos()
+ arch::timer().resolution().as_nanos()
+ );
+
+ println!("Drivers loaded:");

Binary file not shown.

Binary file not shown.

@ -13,7 +13,7 @@ const NS_PER_S: u64 = 1_000_000_000;
pub struct Timer;
impl interface::time::Timer for Timer {
fn resoultion(&self) -> Duration {
fn resolution(&self) -> Duration {
Duration::from_nanos(NS_PER_S / (CNTFRQ_EL0.get() as u64))
}

@ -102,7 +102,7 @@ register_bitfields! {
]
],
/// Interupt Clear Register
/// Interrupt Clear Register
ICR [
/// Meta field for all pending interrupts
ALL OFFSET(0) NUMBITS(11) []

@ -116,7 +116,7 @@ pub mod time {
/// Timer functions.
pub trait Timer {
/// The timer's resolution.
fn resoultion(&self) -> Duration;
fn resolution(&self) -> Duration;
/// The uptime since power-on of the device.
///

@ -70,7 +70,7 @@ fn kernel_main() -> ! {
println!("Booting on: {}", bsp::board_name());
println!(
"Architectural timer resolution: {} ns",
arch::timer().resoultion().as_nanos()
arch::timer().resolution().as_nanos()
);
println!("Drivers loaded:");

Binary file not shown.

Binary file not shown.

@ -13,7 +13,7 @@ const NS_PER_S: u64 = 1_000_000_000;
pub struct Timer;
impl interface::time::Timer for Timer {
fn resoultion(&self) -> Duration {
fn resolution(&self) -> Duration {
Duration::from_nanos(NS_PER_S / (CNTFRQ_EL0.get() as u64))
}

@ -102,7 +102,7 @@ register_bitfields! {
]
],
/// Interupt Clear Register
/// Interrupt Clear Register
ICR [
/// Meta field for all pending interrupts
ALL OFFSET(0) NUMBITS(11) []

@ -116,7 +116,7 @@ pub mod time {
/// Timer functions.
pub trait Timer {
/// The timer's resolution.
fn resoultion(&self) -> Duration;
fn resolution(&self) -> Duration;
/// The uptime since power-on of the device.
///

@ -70,7 +70,7 @@ fn kernel_main() -> ! {
println!("Booting on: {}", bsp::board_name());
println!(
"Architectural timer resolution: {} ns",
arch::timer().resoultion().as_nanos()
arch::timer().resolution().as_nanos()
);
println!("Drivers loaded:");

@ -13,7 +13,7 @@ const NS_PER_S: u64 = 1_000_000_000;
pub struct Timer;
impl interface::time::Timer for Timer {
fn resoultion(&self) -> Duration {
fn resolution(&self) -> Duration {
Duration::from_nanos(NS_PER_S / (CNTFRQ_EL0.get() as u64))
}

@ -102,7 +102,7 @@ register_bitfields! {
]
],
/// Interupt Clear Register
/// Interrupt Clear Register
ICR [
/// Meta field for all pending interrupts
ALL OFFSET(0) NUMBITS(11) []

@ -124,7 +124,7 @@ pub mod time {
/// Timer functions.
pub trait Timer {
/// The timer's resolution.
fn resoultion(&self) -> Duration;
fn resolution(&self) -> Duration;
/// The uptime since power-on of the device.
///

Loading…
Cancel
Save