mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
MIPS: do not initialize timestamp variable before relocate_code
Because timestamp is declared as `static', we needn't initialize it by writing it a zero. If we do it before relocate_code, we will write into a flash address(0xffffffffbfc0xxxx). Signed-off-by: Zhi-zhou Zhang <zhizhou.zh@gmail.com> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
178d0cc1a4
commit
8ab36d2e54
2 changed files with 0 additions and 2 deletions
|
@ -36,7 +36,6 @@ static unsigned long timestamp;
|
|||
int timer_init(void)
|
||||
{
|
||||
/* Set up the timer for the first expiration. */
|
||||
timestamp = 0;
|
||||
write_c0_compare(read_c0_count() + CYCLES_PER_JIFFY);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -37,7 +37,6 @@ static unsigned long timestamp;
|
|||
int timer_init(void)
|
||||
{
|
||||
/* Set up the timer for the first expiration. */
|
||||
timestamp = 0;
|
||||
write_c0_compare(read_c0_count() + CYCLES_PER_JIFFY);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue