Remove unused feature

pull/99/head
Andre Richter 3 years ago
parent ee52e8e288
commit f2a891236e
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -219,18 +219,17 @@ diff -uNr 03_hacky_hello_world/src/cpu.rs 04_zero_overhead_abstraction/src/cpu.r
diff -uNr 03_hacky_hello_world/src/main.rs 04_zero_overhead_abstraction/src/main.rs diff -uNr 03_hacky_hello_world/src/main.rs 04_zero_overhead_abstraction/src/main.rs
--- 03_hacky_hello_world/src/main.rs --- 03_hacky_hello_world/src/main.rs
+++ 04_zero_overhead_abstraction/src/main.rs +++ 04_zero_overhead_abstraction/src/main.rs
@@ -92,9 +92,8 @@ @@ -92,9 +92,7 @@
//! - `crate::memory::*` //! - `crate::memory::*`
//! - `crate::bsp::memory::*` //! - `crate::bsp::memory::*`
-#![feature(asm)] -#![feature(asm)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
-#![feature(global_asm)] -#![feature(global_asm)]
+#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![no_main] #![no_main]
#![no_std] #![no_std]
@@ -116,7 +115,8 @@ @@ -116,7 +114,8 @@
/// ///
/// - Only a single core must be active and running this function. /// - Only a single core must be active and running this function.
unsafe fn kernel_init() -> ! { unsafe fn kernel_init() -> ! {

@ -93,7 +93,6 @@
//! - `crate::bsp::memory::*` //! - `crate::bsp::memory::*`
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![no_main] #![no_main]
#![no_std] #![no_std]

@ -213,15 +213,15 @@ diff -uNr 04_zero_overhead_abstraction/src/console.rs 05_safe_globals/src/consol
diff -uNr 04_zero_overhead_abstraction/src/main.rs 05_safe_globals/src/main.rs diff -uNr 04_zero_overhead_abstraction/src/main.rs 05_safe_globals/src/main.rs
--- 04_zero_overhead_abstraction/src/main.rs --- 04_zero_overhead_abstraction/src/main.rs
+++ 05_safe_globals/src/main.rs +++ 05_safe_globals/src/main.rs
@@ -95,6 +95,7 @@ @@ -94,6 +94,7 @@
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
+#![feature(trait_alias)] +#![feature(trait_alias)]
#![no_main] #![no_main]
#![no_std] #![no_std]
@@ -108,6 +109,7 @@ @@ -107,6 +108,7 @@
mod panic_wait; mod panic_wait;
mod print; mod print;
mod runtime_init; mod runtime_init;
@ -229,7 +229,7 @@ diff -uNr 04_zero_overhead_abstraction/src/main.rs 05_safe_globals/src/main.rs
/// Early init code. /// Early init code.
/// ///
@@ -115,8 +117,15 @@ @@ -114,8 +116,15 @@
/// ///
/// - Only a single core must be active and running this function. /// - Only a single core must be active and running this function.
unsafe fn kernel_init() -> ! { unsafe fn kernel_init() -> ! {

@ -93,7 +93,6 @@
//! - `crate::bsp::memory::*` //! - `crate::bsp::memory::*`
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -1206,9 +1206,9 @@ diff -uNr 05_safe_globals/src/main.rs 06_drivers_gpio_uart/src/main.rs
+#![feature(const_fn_fn_ptr_basics)] +#![feature(const_fn_fn_ptr_basics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
@@ -105,6 +114,7 @@ #![feature(trait_alias)]
@@ -104,6 +113,7 @@
mod bsp; mod bsp;
mod console; mod console;
mod cpu; mod cpu;
@ -1216,7 +1216,7 @@ diff -uNr 05_safe_globals/src/main.rs 06_drivers_gpio_uart/src/main.rs
mod memory; mod memory;
mod panic_wait; mod panic_wait;
mod print; mod print;
@@ -116,16 +126,46 @@ @@ -115,16 +125,46 @@
/// # Safety /// # Safety
/// ///
/// - Only a single core must be active and running this function. /// - Only a single core must be active and running this function.

@ -102,7 +102,6 @@
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -413,9 +413,9 @@ diff -uNr 06_drivers_gpio_uart/src/main.rs 07_uart_chainloader/src/main.rs
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
+#![feature(core_intrinsics)] +#![feature(core_intrinsics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
@@ -109,7 +111,8 @@ #![feature(trait_alias)]
@@ -108,7 +110,8 @@
#![no_std] #![no_std]
// `mod cpu` provides the `_start()` function, the first function to run. `_start()` then calls // `mod cpu` provides the `_start()` function, the first function to run. `_start()` then calls
@ -425,7 +425,7 @@ diff -uNr 06_drivers_gpio_uart/src/main.rs 07_uart_chainloader/src/main.rs
mod bsp; mod bsp;
mod console; mod console;
@@ -118,6 +121,7 @@ @@ -117,6 +120,7 @@
mod memory; mod memory;
mod panic_wait; mod panic_wait;
mod print; mod print;
@ -433,7 +433,7 @@ diff -uNr 06_drivers_gpio_uart/src/main.rs 07_uart_chainloader/src/main.rs
mod runtime_init; mod runtime_init;
mod synchronization; mod synchronization;
@@ -144,28 +148,52 @@ @@ -143,28 +147,52 @@
/// The main function running after the early init. /// The main function running after the early init.
fn kernel_main() -> ! { fn kernel_main() -> ! {

@ -104,7 +104,6 @@
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -462,9 +462,9 @@ diff -uNr 07_uart_chainloader/src/main.rs 08_timestamps/src/main.rs
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
-#![feature(core_intrinsics)] -#![feature(core_intrinsics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
@@ -111,8 +111,7 @@ #![feature(trait_alias)]
@@ -110,8 +110,7 @@
#![no_std] #![no_std]
// `mod cpu` provides the `_start()` function, the first function to run. `_start()` then calls // `mod cpu` provides the `_start()` function, the first function to run. `_start()` then calls
@ -474,7 +474,7 @@ diff -uNr 07_uart_chainloader/src/main.rs 08_timestamps/src/main.rs
mod bsp; mod bsp;
mod console; mod console;
@@ -121,9 +120,9 @@ @@ -120,9 +119,9 @@
mod memory; mod memory;
mod panic_wait; mod panic_wait;
mod print; mod print;
@ -485,7 +485,7 @@ diff -uNr 07_uart_chainloader/src/main.rs 08_timestamps/src/main.rs
/// Early init code. /// Early init code.
/// ///
@@ -148,52 +147,31 @@ @@ -147,52 +146,31 @@
/// The main function running after the early init. /// The main function running after the early init.
fn kernel_main() -> ! { fn kernel_main() -> ! {

@ -104,7 +104,6 @@
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -104,7 +104,6 @@
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -456,7 +456,7 @@ diff -uNr 09_hw_debug_JTAG/src/exception.rs 10_privilege_level/src/exception.rs
diff -uNr 09_hw_debug_JTAG/src/main.rs 10_privilege_level/src/main.rs diff -uNr 09_hw_debug_JTAG/src/main.rs 10_privilege_level/src/main.rs
--- 09_hw_debug_JTAG/src/main.rs --- 09_hw_debug_JTAG/src/main.rs
+++ 10_privilege_level/src/main.rs +++ 10_privilege_level/src/main.rs
@@ -117,6 +117,7 @@ @@ -116,6 +116,7 @@
mod console; mod console;
mod cpu; mod cpu;
mod driver; mod driver;
@ -464,7 +464,7 @@ diff -uNr 09_hw_debug_JTAG/src/main.rs 10_privilege_level/src/main.rs
mod memory; mod memory;
mod panic_wait; mod panic_wait;
mod print; mod print;
@@ -147,12 +148,19 @@ @@ -146,12 +147,19 @@
/// The main function running after the early init. /// The main function running after the early init.
fn kernel_main() -> ! { fn kernel_main() -> ! {
@ -484,7 +484,7 @@ diff -uNr 09_hw_debug_JTAG/src/main.rs 10_privilege_level/src/main.rs
info!( info!(
"Architectural timer resolution: {} ns", "Architectural timer resolution: {} ns",
time::time_manager().resolution().as_nanos() time::time_manager().resolution().as_nanos()
@@ -167,11 +175,12 @@ @@ -166,11 +174,12 @@
info!(" {}. {}", i + 1, driver.compatible()); info!(" {}. {}", i + 1, driver.compatible());
} }

@ -104,7 +104,6 @@
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -892,9 +892,9 @@ diff -uNr 10_privilege_level/src/main.rs 11_virtual_mem_part1_identity_mapping/s
+#![feature(const_generics)] +#![feature(const_generics)]
+#![feature(const_panic)] +#![feature(const_panic)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
@@ -130,9 +135,18 @@ #![feature(trait_alias)]
@@ -129,9 +134,18 @@
/// # Safety /// # Safety
/// ///
/// - Only a single core must be active and running this function. /// - Only a single core must be active and running this function.
@ -914,7 +914,7 @@ diff -uNr 10_privilege_level/src/main.rs 11_virtual_mem_part1_identity_mapping/s
for i in bsp::driver::driver_manager().all_device_drivers().iter() { for i in bsp::driver::driver_manager().all_device_drivers().iter() {
if let Err(x) = i.init() { if let Err(x) = i.init() {
@@ -155,6 +169,9 @@ @@ -154,6 +168,9 @@
info!("Booting on: {}", bsp::board_name()); info!("Booting on: {}", bsp::board_name());
@ -924,7 +924,7 @@ diff -uNr 10_privilege_level/src/main.rs 11_virtual_mem_part1_identity_mapping/s
let (_, privilege_level) = exception::current_privilege_level(); let (_, privilege_level) = exception::current_privilege_level();
info!("Current privilege level: {}", privilege_level); info!("Current privilege level: {}", privilege_level);
@@ -178,6 +195,13 @@ @@ -177,6 +194,13 @@
info!("Timer test, spinning for 1 second"); info!("Timer test, spinning for 1 second");
time::time_manager().spin_for(Duration::from_secs(1)); time::time_manager().spin_for(Duration::from_secs(1));

@ -109,7 +109,6 @@
#![feature(const_generics)] #![feature(const_generics)]
#![feature(const_panic)] #![feature(const_panic)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -961,10 +961,10 @@ diff -uNr 11_virtual_mem_part1_identity_mapping/src/main.rs 12_exceptions_part1_
#![feature(const_panic)] #![feature(const_panic)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
+#![feature(global_asm)] +#![feature(global_asm)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
@@ -144,6 +145,8 @@ #![no_main]
@@ -143,6 +144,8 @@
use driver::interface::DriverManager; use driver::interface::DriverManager;
use memory::mmu::interface::MMU; use memory::mmu::interface::MMU;
@ -973,7 +973,7 @@ diff -uNr 11_virtual_mem_part1_identity_mapping/src/main.rs 12_exceptions_part1_
if let Err(string) = memory::mmu::mmu().init() { if let Err(string) = memory::mmu::mmu().init() {
panic!("MMU: {}", string); panic!("MMU: {}", string);
} }
@@ -195,13 +198,28 @@ @@ -194,13 +197,28 @@
info!("Timer test, spinning for 1 second"); info!("Timer test, spinning for 1 second");
time::time_manager().spin_for(Duration::from_secs(1)); time::time_manager().spin_for(Duration::from_secs(1));

@ -110,7 +110,6 @@
#![feature(const_panic)] #![feature(const_panic)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(global_asm)] #![feature(global_asm)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

@ -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 diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/lib.rs
--- 12_exceptions_part1_groundwork/src/lib.rs --- 12_exceptions_part1_groundwork/src/lib.rs
+++ 13_integrated_testing/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 +// SPDX-License-Identifier: MIT OR Apache-2.0
+// +//
+// Copyright (c) 2018-2021 Andre Richter <andre.o.richter@gmail.com> +// 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(format_args_nl)]
+#![feature(global_asm)] +#![feature(global_asm)]
+#![feature(linkage)] +#![feature(linkage)]
+#![feature(naked_functions)]
+#![feature(panic_info_message)] +#![feature(panic_info_message)]
+#![feature(trait_alias)] +#![feature(trait_alias)]
+#![no_std] +#![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 diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/main.rs
--- 12_exceptions_part1_groundwork/src/main.rs --- 12_exceptions_part1_groundwork/src/main.rs
+++ 13_integrated_testing/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")] #![doc(html_logo_url = "https://git.io/JeGIp")]
//! The `kernel` binary. //! 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(format_args_nl)]
-#![feature(global_asm)] -#![feature(global_asm)]
-#![feature(naked_functions)]
-#![feature(panic_info_message)] -#![feature(panic_info_message)]
-#![feature(trait_alias)] -#![feature(trait_alias)]
#![no_main] #![no_main]
@ -1438,7 +1436,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/main.rs 13_integrated_testing/src/m
/// Early init code. /// 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 /// - 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 /// drivers (which currently employ NullLocks instead of spinlocks), will fail to work on
/// the RPi SoCs. /// 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() -> ! { unsafe fn kernel_init() -> ! {
use driver::interface::DriverManager; use driver::interface::DriverManager;
use memory::mmu::interface::MMU; use memory::mmu::interface::MMU;
@@ -166,9 +49,7 @@ @@ -165,9 +49,7 @@
/// The main function running after the early init. /// The main function running after the early init.
fn kernel_main() -> ! { fn kernel_main() -> ! {
use console::interface::All; 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()); info!("Booting on: {}", bsp::board_name());
@@ -195,31 +76,6 @@ @@ -194,31 +76,6 @@
info!(" {}. {}", i + 1, driver.compatible()); info!(" {}. {}", i + 1, driver.compatible());
} }

@ -113,7 +113,6 @@
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(global_asm)] #![feature(global_asm)]
#![feature(linkage)] #![feature(linkage)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_std] #![no_std]

@ -2407,7 +2407,7 @@ diff -uNr 13_integrated_testing/src/lib.rs 14_exceptions_part2_peripheral_IRQs/s
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(global_asm)] #![feature(global_asm)]
#![feature(linkage)] #![feature(linkage)]
@@ -137,6 +144,7 @@ @@ -136,6 +143,7 @@
pub mod exception; pub mod exception;
pub mod memory; pub mod memory;
pub mod print; pub mod print;

@ -120,7 +120,6 @@
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(global_asm)] #![feature(global_asm)]
#![feature(linkage)] #![feature(linkage)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_std] #![no_std]

@ -2038,7 +2038,7 @@ diff -uNr 14_exceptions_part2_peripheral_IRQs/src/lib.rs 15_virtual_mem_part2_mm
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(const_generics)] #![feature(const_generics)]
#![feature(const_panic)] #![feature(const_panic)]
@@ -138,6 +139,7 @@ @@ -137,6 +138,7 @@
mod synchronization; mod synchronization;
pub mod bsp; pub mod bsp;

@ -121,7 +121,6 @@
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(global_asm)] #![feature(global_asm)]
#![feature(linkage)] #![feature(linkage)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_std] #![no_std]

Binary file not shown.

Binary file not shown.

@ -104,7 +104,6 @@
#![feature(const_fn_fn_ptr_basics)] #![feature(const_fn_fn_ptr_basics)]
#![feature(format_args_nl)] #![feature(format_args_nl)]
#![feature(naked_functions)]
#![feature(panic_info_message)] #![feature(panic_info_message)]
#![feature(trait_alias)] #![feature(trait_alias)]
#![no_main] #![no_main]

Loading…
Cancel
Save