Skip to content

Commit

Permalink
fix addresses linker symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jan 11, 2021
1 parent b886e40 commit 3b3f528
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bootloader/src/bootloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const UART_RECEIVE_TIMEOUT: u8 = 100;
extern "C" {
static _flags_address: u8;
static _attributes_address: u8;
static _textstart: u8;
static _erelocate: u8;
static _stext: u8;
static _etext: u8;
}

// Bootloader constants
Expand Down Expand Up @@ -150,8 +150,8 @@ impl<'a, U: hil::uart::UartAdvanced<'a> + 'a, F: hil::flash::Flash + 'a> Bootloa
state: Cell::new(State::Idle),
flags_address: unsafe { (&_flags_address as *const u8) as usize },
attributes_address: unsafe { (&_attributes_address as *const u8) as usize },
bootloader_address: unsafe { (&_textstart as *const u8) as u32 },
bootloader_end_address: unsafe { (&_erelocate as *const u8) as u32 },
bootloader_address: unsafe { (&_stext as *const u8) as u32 },
bootloader_end_address: unsafe { (&_etext as *const u8) as u32 },
}
}

Expand Down

0 comments on commit 3b3f528

Please sign in to comment.