mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Eradicate all occurences of hardcoded memory addresses from all sources files, except for the FPGA bitstream fallback
This commit is contained in:
parent
52b3d184ce
commit
e3ae025783
7 changed files with 26 additions and 13 deletions
|
@ -107,6 +107,7 @@ void UsbPacketReceived(BYTE *packet, int len)
|
|||
UsbSendPacket(packet, len);
|
||||
}
|
||||
|
||||
extern char _osimage_entry;
|
||||
void BootROM(void)
|
||||
{
|
||||
//------------
|
||||
|
@ -182,9 +183,8 @@ void BootROM(void)
|
|||
USB_D_PLUS_PULLUP_OFF();
|
||||
LED_B_ON();
|
||||
|
||||
// jump to Flash address 0x10000 (LSBit set for thumb mode, 0x100000 added for Flash base address)
|
||||
asm("ldr r3, = 0x00110001\n");
|
||||
asm("bx r3\n");
|
||||
// jump to Flash address of the osimage entry point (LSBit set for thumb mode)
|
||||
asm("bx %0\n" : : "r" ( ((int)&_osimage_entry) | 0x1 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue