Removed useless jmp variable.

This commit is contained in:
Vincent Rivière
2012-11-07 22:20:13 +00:00
parent 4ec8898ed2
commit 93e537b0e7

View File

@@ -767,7 +767,6 @@ void initialize_hardware(void) {
uint32_t *src; /* src address to read from flash */ uint32_t *src; /* src address to read from flash */
uint32_t *end; /* end address to read from flash */ uint32_t *end; /* end address to read from flash */
uint32_t *dst; /* destination address to copy to */ uint32_t *dst; /* destination address to copy to */
uint32_t *jmp; /* address of BaS() routine to jmp at after copy */
/* Test for FireTOS switch: DIP switch #5 up */ /* Test for FireTOS switch: DIP switch #5 up */
if (!(DIP_SWITCH & (1 << 6))) { if (!(DIP_SWITCH & (1 << 6))) {
@@ -808,7 +807,7 @@ void initialize_hardware(void) {
/* copy the BaS code contained in flash to its final location */ /* copy the BaS code contained in flash to its final location */
src = (uint32_t *)BAS_LMA; src = (uint32_t *)BAS_LMA;
end = (uint32_t *)(BAS_LMA + BAS_SIZE); end = (uint32_t *)(BAS_LMA + BAS_SIZE);
dst = jmp = (uint32_t *)BAS_IN_RAM; dst = (uint32_t *)BAS_IN_RAM;
/* The linker script will ensure that the Bas size /* The linker script will ensure that the Bas size
* is a multiple of the following. * is a multiple of the following.