Skip to content

Commit 74cba50

Browse files
committed
remove demangling of main for mps3-an536 example
1 parent 964ee6e commit 74cba50

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

examples/mps3-an536/src/bin/generic_timer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub extern "C" fn kmain() {
1818
}
1919

2020
/// Let's test some timers!
21-
#[export_name = "main"]
2221
fn main() {
2322
use cortex_ar::generic_timer::{El1PhysicalTimer, El1VirtualTimer, GenericTimer};
2423
let cntfrq = cortex_ar::register::Cntfrq::read().0;

examples/mps3-an536/src/bin/gic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pub extern "C" fn kmain() {
3131
/// The main function of our Rust application.
3232
///
3333
/// Called by [`kmain`].
34-
#[export_name = "main"]
3534
fn main() -> ! {
3635
// Get the GIC address by reading CBAR
3736
let periphbase = cortex_ar::register::ImpCbar::read().periphbase();

examples/mps3-an536/src/bin/hello.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub extern "C" fn kmain() {
1919
/// The main function of our Rust application.
2020
///
2121
/// Called by [`kmain`].
22-
#[export_name = "main"]
2322
fn main() -> ! {
2423
let x = 1.0f64;
2524
let y = x * 2.0;

examples/mps3-an536/src/bin/registers.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub extern "C" fn kmain() {
1919
/// The entry-point to the Rust application.
2020
///
2121
/// Called by [`kmain`].
22-
#[export_name = "main"]
2322
pub fn main() -> ! {
2423
chip_info();
2524
#[cfg(arm_architecture = "v7-r")]

examples/mps3-an536/src/bin/svc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub extern "C" fn kmain() {
1919
/// The main function of our Rust application.
2020
///
2121
/// Called by [`kmain`].
22-
#[export_name = "main"]
2322
pub fn main() -> ! {
2423
let x = 1;
2524
let y = x + 1;

0 commit comments

Comments
 (0)