diff options
Diffstat (limited to 'cpu/mpc5xxx')
-rw-r--r-- | cpu/mpc5xxx/cpu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c index d87f42c..0ed2899 100644 --- a/cpu/mpc5xxx/cpu.c +++ b/cpu/mpc5xxx/cpu.c @@ -140,18 +140,18 @@ void ft_cpu_setup(void *blob, bd_t *bd) void bootcount_store (ulong a) { - volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB); + volatile ulong *save_addr = (volatile ulong *) (MPC5XXX_CDM_BRDCRMB); - *save_addr = (BOOTCOUNT_MAGIC & 0xffff0000) | a; + *save_addr = (BOOTCOUNT_MAGIC & 0xffff0000) | a; } ulong bootcount_load (void) { - volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB); + volatile ulong *save_addr = (volatile ulong *) (MPC5XXX_CDM_BRDCRMB); - if ((*save_addr & 0xffff0000) != (BOOTCOUNT_MAGIC & 0xffff0000)) - return 0; - else - return (*save_addr & 0x0000ffff); + if ((*save_addr & 0xffff0000) != (BOOTCOUNT_MAGIC & 0xffff0000)) + return 0; + else + return (*save_addr & 0x0000ffff); } #endif /* CONFIG_BOOTCOUNT_LIMIT */ |