|
|
|
@ -1130,7 +1130,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/exception.rs 13_integrated_testing/
|
|
|
|
|
diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/lib.rs
|
|
|
|
|
--- 12_exceptions_part1_groundwork/src/lib.rs
|
|
|
|
|
+++ 13_integrated_testing/src/lib.rs
|
|
|
|
|
@@ -0,0 +1,170 @@
|
|
|
|
|
@@ -0,0 +1,169 @@
|
|
|
|
|
+// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
|
+//
|
|
|
|
|
+// Copyright (c) 2018-2021 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
@ -1246,7 +1246,6 @@ diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/li
|
|
|
|
|
+#![feature(format_args_nl)]
|
|
|
|
|
+#![feature(global_asm)]
|
|
|
|
|
+#![feature(linkage)]
|
|
|
|
|
+#![feature(naked_functions)]
|
|
|
|
|
+#![feature(panic_info_message)]
|
|
|
|
|
+#![feature(trait_alias)]
|
|
|
|
|
+#![no_std]
|
|
|
|
@ -1305,7 +1304,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/li
|
|
|
|
|
diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/main.rs
|
|
|
|
|
--- 12_exceptions_part1_groundwork/src/main.rs
|
|
|
|
|
+++ 13_integrated_testing/src/main.rs
|
|
|
|
|
@@ -6,130 +6,12 @@
|
|
|
|
|
@@ -6,129 +6,12 @@
|
|
|
|
|
#![doc(html_logo_url = "https://git.io/JeGIp")]
|
|
|
|
|
|
|
|
|
|
//! The `kernel` binary.
|
|
|
|
@ -1414,7 +1413,6 @@ diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/m
|
|
|
|
|
+
|
|
|
|
|
#![feature(format_args_nl)]
|
|
|
|
|
-#![feature(global_asm)]
|
|
|
|
|
-#![feature(naked_functions)]
|
|
|
|
|
-#![feature(panic_info_message)]
|
|
|
|
|
-#![feature(trait_alias)]
|
|
|
|
|
#![no_main]
|
|
|
|
@ -1438,7 +1436,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/m
|
|
|
|
|
|
|
|
|
|
/// Early init code.
|
|
|
|
|
///
|
|
|
|
|
@@ -141,6 +23,7 @@
|
|
|
|
|
@@ -140,6 +23,7 @@
|
|
|
|
|
/// - Without it, any atomic operations, e.g. the yet-to-be-introduced spinlocks in the device
|
|
|
|
|
/// drivers (which currently employ NullLocks instead of spinlocks), will fail to work on
|
|
|
|
|
/// the RPi SoCs.
|
|
|
|
@ -1446,7 +1444,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/m
|
|
|
|
|
unsafe fn kernel_init() -> ! {
|
|
|
|
|
use driver::interface::DriverManager;
|
|
|
|
|
use memory::mmu::interface::MMU;
|
|
|
|
|
@@ -166,9 +49,7 @@
|
|
|
|
|
@@ -165,9 +49,7 @@
|
|
|
|
|
/// The main function running after the early init.
|
|
|
|
|
fn kernel_main() -> ! {
|
|
|
|
|
use console::interface::All;
|
|
|
|
@ -1456,7 +1454,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/m
|
|
|
|
|
|
|
|
|
|
info!("Booting on: {}", bsp::board_name());
|
|
|
|
|
|
|
|
|
|
@@ -195,31 +76,6 @@
|
|
|
|
|
@@ -194,31 +76,6 @@
|
|
|
|
|
info!(" {}. {}", i + 1, driver.compatible());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|