Fix jtag_dbg_wait to not mangle WAIT_FLAG
This commit is contained in:
parent
bd68e95e27
commit
94324f3f8c
|
@ -9,12 +9,12 @@ pub use mmu::*;
|
||||||
|
|
||||||
use cortex_a::{asm, barrier, regs::*};
|
use cortex_a::{asm, barrier, regs::*};
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
static mut WAIT_FLAG: bool = true;
|
static mut WAIT_FLAG: bool = true;
|
||||||
|
|
||||||
/// Wait for debugger to attach.
|
/// Wait for debugger to attach.
|
||||||
/// Then in gdb issue `> set var *(&WAIT_FLAG) = 0`
|
/// Then in gdb issue `> set var *(&WAIT_FLAG) = 0`
|
||||||
/// from inside this function's frame to contiue running.
|
/// from inside this function's frame to contiue running.
|
||||||
#[inline]
|
|
||||||
pub fn jtag_dbg_wait() {
|
pub fn jtag_dbg_wait() {
|
||||||
use core::ptr::{read_volatile, write_volatile};
|
use core::ptr::{read_volatile, write_volatile};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue