u-boot/arch
Lukasz Majewski b8c908762c ti: clocks: Fix do_enable_clocks() to accept NULL pointers as input parameters
Up till this commit passing NULL as input parameter was allowed, but not
handled properly.

When one passed NULL to one of this function parameters, the code was
executed causing data abort.

However, what is more interesting, the abort was not caught because of code
execution in HYP mode with masked CPSR A bit ("Imprecise Data Abort mask bit).
The TI's AM57xx SoC switch to HYP mode with A bit masked in lowlevel_init.S
due to SMC call. Such operation (by default) is performed in SoC ROM code.

The problem would pop up when one:
- Switch back to SVC mode after disabling LPAE support
- Somebody enables A bit (by executing cpsie a asm instruction)

and then the previously described exception would be caught.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
2017-04-08 21:32:49 -04:00
..
arc board_f: Make relocation functions generic 2017-04-05 16:36:57 -04:00
arm ti: clocks: Fix do_enable_clocks() to accept NULL pointers as input parameters 2017-04-08 21:32:49 -04:00
avr32 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
m68k spi: Zap cf_qspi driver and related code 2017-01-15 18:29:04 +01:00
microblaze microblaze: Fix endif macro command 2017-02-10 13:59:36 +01:00
mips board_f: Drop return value from initdram() 2017-04-05 13:59:20 -04:00
nds32 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
nios2 dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
powerpc powerpc: Move setup_board_extra() into a PPC file 2017-04-05 16:36:55 -04:00
sandbox board_f: sandbox: Move sandbox_early_getopt_check() into misc_init_f() 2017-04-05 13:55:07 -04:00
sh sh: generate position independent code for all platforms 2016-12-02 21:32:54 -05:00
x86 board_f: Make relocation functions generic 2017-04-05 16:36:57 -04:00
xtensa board_f: Make relocation functions generic 2017-04-05 16:36:57 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig OpenRISC: Remove 2017-04-05 13:52:34 -04:00