Skip to content

Commit 909b05b

Browse files
committed
Bump compiler version
1 parent dbf3441 commit 909b05b

File tree

27 files changed

+52
-72
lines changed

27 files changed

+52
-72
lines changed
208 Bytes
Binary file not shown.
200 Bytes
Binary file not shown.

10_virtual_mem_part1_identity_mapping/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ diff -uNr 09_privilege_level/src/_arch/aarch64/memory/mmu.rs 10_virtual_mem_part
801801
+ // Populate translation tables.
802802
+ KERNEL_TABLES
803803
+ .populate_tt_entries()
804-
+ .map_err(|e| MMUEnableError::Other(e))?;
804+
+ .map_err(MMUEnableError::Other)?;
805805
+
806806
+ // Set the "Translation Table Base Register".
807807
+ TTBR0_EL1.set_baddr(KERNEL_TABLES.phys_base_address());
@@ -1042,27 +1042,25 @@ diff -uNr 09_privilege_level/src/bsp.rs 10_virtual_mem_part1_identity_mapping/sr
10421042
diff -uNr 09_privilege_level/src/main.rs 10_virtual_mem_part1_identity_mapping/src/main.rs
10431043
--- 09_privilege_level/src/main.rs
10441044
+++ 10_virtual_mem_part1_identity_mapping/src/main.rs
1045-
@@ -105,7 +105,11 @@
1045+
@@ -105,7 +105,9 @@
10461046
//! 2. Once finished with architectural setup, the arch code calls `kernel_init()`.
10471047
10481048
#![allow(clippy::upper_case_acronyms)]
10491049
+#![allow(incomplete_features)]
10501050
#![feature(const_fn_fn_ptr_basics)]
1051-
+#![feature(const_generics)]
1052-
+#![feature(const_panic)]
10531051
+#![feature(core_intrinsics)]
10541052
#![feature(format_args_nl)]
10551053
#![feature(global_asm)]
10561054
#![feature(panic_info_message)]
1057-
@@ -118,6 +122,7 @@
1055+
@@ -118,6 +120,7 @@
10581056
mod cpu;
10591057
mod driver;
10601058
mod exception;
10611059
+mod memory;
10621060
mod panic_wait;
10631061
mod print;
10641062
mod synchronization;
1065-
@@ -128,9 +133,17 @@
1063+
@@ -128,9 +131,17 @@
10661064
/// # Safety
10671065
///
10681066
/// - Only a single core must be active and running this function.
@@ -1081,7 +1079,7 @@ diff -uNr 09_privilege_level/src/main.rs 10_virtual_mem_part1_identity_mapping/s
10811079
10821080
for i in bsp::driver::driver_manager().all_device_drivers().iter() {
10831081
if let Err(x) = i.init() {
1084-
@@ -159,6 +172,9 @@
1082+
@@ -159,6 +170,9 @@
10851083
);
10861084
info!("Booting on: {}", bsp::board_name());
10871085
@@ -1091,7 +1089,7 @@ diff -uNr 09_privilege_level/src/main.rs 10_virtual_mem_part1_identity_mapping/s
10911089
let (_, privilege_level) = exception::current_privilege_level();
10921090
info!("Current privilege level: {}", privilege_level);
10931091
1094-
@@ -182,6 +198,13 @@
1092+
@@ -182,6 +196,13 @@
10951093
info!("Timer test, spinning for 1 second");
10961094
time::time_manager().spin_for(Duration::from_secs(1));
10971095

10_virtual_mem_part1_identity_mapping/src/_arch/aarch64/memory/mmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl memory::mmu::interface::MMU for MemoryManagementUnit {
137137
// Populate translation tables.
138138
KERNEL_TABLES
139139
.populate_tt_entries()
140-
.map_err(|e| MMUEnableError::Other(e))?;
140+
.map_err(MMUEnableError::Other)?;
141141

142142
// Set the "Translation Table Base Register".
143143
TTBR0_EL1.set_baddr(KERNEL_TABLES.phys_base_address());

10_virtual_mem_part1_identity_mapping/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@
107107
#![allow(clippy::upper_case_acronyms)]
108108
#![allow(incomplete_features)]
109109
#![feature(const_fn_fn_ptr_basics)]
110-
#![feature(const_generics)]
111-
#![feature(const_panic)]
112110
#![feature(core_intrinsics)]
113111
#![feature(format_args_nl)]
114112
#![feature(global_asm)]

11_exceptions_part1_groundwork/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ diff -uNr 10_virtual_mem_part1_identity_mapping/src/exception.rs 11_exceptions_p
971971
diff -uNr 10_virtual_mem_part1_identity_mapping/src/main.rs 11_exceptions_part1_groundwork/src/main.rs
972972
--- 10_virtual_mem_part1_identity_mapping/src/main.rs
973973
+++ 11_exceptions_part1_groundwork/src/main.rs
974-
@@ -141,6 +141,8 @@
974+
@@ -139,6 +139,8 @@
975975
use driver::interface::DriverManager;
976976
use memory::mmu::interface::MMU;
977977

@@ -980,7 +980,7 @@ diff -uNr 10_virtual_mem_part1_identity_mapping/src/main.rs 11_exceptions_part1_
980980
if let Err(string) = memory::mmu::mmu().enable_mmu_and_caching() {
981981
panic!("MMU: {}", string);
982982
}
983-
@@ -198,13 +200,28 @@
983+
@@ -196,13 +198,28 @@
984984
info!("Timer test, spinning for 1 second");
985985
time::time_manager().spin_for(Duration::from_secs(1));
986986

11_exceptions_part1_groundwork/src/_arch/aarch64/memory/mmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl memory::mmu::interface::MMU for MemoryManagementUnit {
137137
// Populate translation tables.
138138
KERNEL_TABLES
139139
.populate_tt_entries()
140-
.map_err(|e| MMUEnableError::Other(e))?;
140+
.map_err(MMUEnableError::Other)?;
141141

142142
// Set the "Translation Table Base Register".
143143
TTBR0_EL1.set_baddr(KERNEL_TABLES.phys_base_address());

11_exceptions_part1_groundwork/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@
107107
#![allow(clippy::upper_case_acronyms)]
108108
#![allow(incomplete_features)]
109109
#![feature(const_fn_fn_ptr_basics)]
110-
#![feature(const_generics)]
111-
#![feature(const_panic)]
112110
#![feature(core_intrinsics)]
113111
#![feature(format_args_nl)]
114112
#![feature(global_asm)]

12_integrated_testing/README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ diff -uNr 11_exceptions_part1_groundwork/src/exception.rs 12_integrated_testing/
12811281
diff -uNr 11_exceptions_part1_groundwork/src/lib.rs 12_integrated_testing/src/lib.rs
12821282
--- 11_exceptions_part1_groundwork/src/lib.rs
12831283
+++ 12_integrated_testing/src/lib.rs
1284-
@@ -0,0 +1,187 @@
1284+
@@ -0,0 +1,185 @@
12851285
+// SPDX-License-Identifier: MIT OR Apache-2.0
12861286
+//
12871287
+// Copyright (c) 2018-2021 Andre Richter <[email protected]>
@@ -1393,8 +1393,6 @@ diff -uNr 11_exceptions_part1_groundwork/src/lib.rs 12_integrated_testing/src/li
13931393
+#![allow(clippy::upper_case_acronyms)]
13941394
+#![allow(incomplete_features)]
13951395
+#![feature(const_fn_fn_ptr_basics)]
1396-
+#![feature(const_generics)]
1397-
+#![feature(const_panic)]
13981396
+#![feature(core_intrinsics)]
13991397
+#![feature(format_args_nl)]
14001398
+#![feature(global_asm)]
@@ -1473,7 +1471,7 @@ diff -uNr 11_exceptions_part1_groundwork/src/lib.rs 12_integrated_testing/src/li
14731471
diff -uNr 11_exceptions_part1_groundwork/src/main.rs 12_integrated_testing/src/main.rs
14741472
--- 11_exceptions_part1_groundwork/src/main.rs
14751473
+++ 12_integrated_testing/src/main.rs
1476-
@@ -6,127 +6,12 @@
1474+
@@ -6,125 +6,12 @@
14771475
#![doc(html_logo_url = "https://git.io/JeGIp")]
14781476

14791477
//! The `kernel` binary.
@@ -1578,8 +1576,6 @@ diff -uNr 11_exceptions_part1_groundwork/src/main.rs 12_integrated_testing/src/m
15781576
-#![allow(clippy::upper_case_acronyms)]
15791577
-#![allow(incomplete_features)]
15801578
-#![feature(const_fn_fn_ptr_basics)]
1581-
-#![feature(const_generics)]
1582-
-#![feature(const_panic)]
15831579
-#![feature(core_intrinsics)]
15841580
+
15851581
#![feature(format_args_nl)]
@@ -1603,15 +1599,15 @@ diff -uNr 11_exceptions_part1_groundwork/src/main.rs 12_integrated_testing/src/m
16031599

16041600
/// Early init code.
16051601
///
1606-
@@ -137,6 +22,7 @@
1602+
@@ -135,6 +22,7 @@
16071603
/// - MMU + Data caching must be activated at the earliest. Without it, any atomic operations,
16081604
/// e.g. the yet-to-be-introduced spinlocks in the device drivers (which currently employ
16091605
/// NullLocks instead of spinlocks), will fail to work (properly) on the RPi SoCs.
16101606
+#[no_mangle]
16111607
unsafe fn kernel_init() -> ! {
16121608
use driver::interface::DriverManager;
16131609
use memory::mmu::interface::MMU;
1614-
@@ -163,15 +49,9 @@
1610+
@@ -161,15 +49,9 @@
16151611
fn kernel_main() -> ! {
16161612
use bsp::console::console;
16171613
use console::interface::All;
@@ -1628,7 +1624,7 @@ diff -uNr 11_exceptions_part1_groundwork/src/main.rs 12_integrated_testing/src/m
16281624
info!("Booting on: {}", bsp::board_name());
16291625

16301626
info!("MMU online. Special regions:");
1631-
@@ -197,31 +77,6 @@
1627+
@@ -195,31 +77,6 @@
16321628
info!(" {}. {}", i + 1, driver.compatible());
16331629
}
16341630

12_integrated_testing/src/_arch/aarch64/memory/mmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl memory::mmu::interface::MMU for MemoryManagementUnit {
137137
// Populate translation tables.
138138
KERNEL_TABLES
139139
.populate_tt_entries()
140-
.map_err(|e| MMUEnableError::Other(e))?;
140+
.map_err(MMUEnableError::Other)?;
141141

142142
// Set the "Translation Table Base Register".
143143
TTBR0_EL1.set_baddr(KERNEL_TABLES.phys_base_address());

0 commit comments

Comments
 (0)