Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit 37bf74b

Browse files
committed
Merge pull request #199 from bgamari/no-stack-check
Use -C no-stack-check instead of #[no_stack_check]
2 parents 77ee703 + a9a481d commit 37bf74b

18 files changed

+1
-28
lines changed

apps/app_blink.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ platformtree!(
4545
}
4646
)
4747

48-
#[no_stack_check]
4948
fn run(args: &pt::run_args) {
5049
use zinc::hal::pin::GPIO;
5150
use zinc::hal::timer::Timer;

apps/app_blink_k20.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub fn wait(ticks: u32) {
2626
}
2727

2828
#[no_mangle]
29-
#[no_stack_check]
3029
#[allow(unused_variable)]
3130
#[allow(dead_code)]
3231
pub unsafe fn main() {

apps/app_blink_k20_isr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ static mut i: u32 = 0;
1818
static mut global_on: u32 = 0;
1919

2020
#[allow(dead_code)]
21-
#[no_stack_check]
2221
#[no_mangle]
2322
pub unsafe extern fn isr_systick() {
2423
i += 1;
@@ -29,7 +28,6 @@ pub unsafe extern fn isr_systick() {
2928
}
3029

3130
#[no_mangle]
32-
#[no_stack_check]
3331
#[allow(dead_code)]
3432
pub fn main() {
3533
zinc::hal::mem_init::init_stack();

apps/app_blink_stm32f4.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ extern crate core;
66
extern crate zinc;
77

88
#[no_mangle]
9-
#[no_stack_check]
109
#[allow(unused_variable)]
1110
#[allow(dead_code)]
1211
pub unsafe fn main() {

apps/app_dht22.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ platformtree!(
6565
)
6666

6767
#[zinc_task]
68-
#[no_stack_check]
6968
fn run(args: &pt::run_args) {
7069
use zinc::drivers::chario::CharIO;
7170
use zinc::hal::timer::Timer;

apps/app_empty.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ platformtree!(
2626
}
2727
)
2828

29-
#[no_stack_check]
3029
fn run() {
3130
unsafe { asm!("nop") }
3231
}

apps/app_uart.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ platformtree!(
5757
}
5858
)
5959

60-
#[no_stack_check]
6160
fn run(args: &pt::run_args) {
6261
use zinc::drivers::chario::CharIO;
6362
use zinc::hal::timer::Timer;

apps/old_app_mbed_lcd.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ static platform: Platform = Platform {
5555
},
5656
};
5757

58-
#[no_stack_check]
5958
pub fn main() {
6059
platform.configuration.setup();
6160

apps/old_app_sched.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ fn main_task(arg: u32) {
7373
}
7474
}
7575

76-
#[no_stack_check]
7776
pub fn main() {
7877
platform.configuration.setup();
7978
debug::setup(&platform.uart);

apps/old_app_systick.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ static mut i: u32 = 0;
2828
static mut on: u32 = 0;
2929

3030
#[inline(always)]
31-
#[no_stack_check]
3231
unsafe fn systick_handler() {
3332
i += 1;
3433
if i > 100 {
@@ -37,7 +36,6 @@ unsafe fn systick_handler() {
3736
}
3837
}
3938

40-
#[no_stack_check]
4139
pub fn main() {
4240
platform.configuration.setup();
4341
systick::setup(systick::ten_ms().unwrap_or(480000));

0 commit comments

Comments
 (0)