osd-contiki/cpu
George Oikonomou eed1352282 Fix CC2538 random_init lockup
Contiki sometimes fails to boot correctly and locks up in
random_init()

This problem only manifests itself for specific versions
of the arm-gcc toolchain and then again only for specific
levels of optimisation (-Os vs -O2, depending on the
value of the SMALL make variable)

The lockup is caused when we write an RFCORE XREG before
the RF clock ungating has taken effect, which in turn
only occurs depending on the assembly generated for those
two instructions:

  REG(SYS_CTRL_RCGCRFC) = 1;

  REG(RFCORE_XREG_FRMCTRL0) = 0x00000008;

This commit makes the RNG wait for the ungating to take
effect before attempting to write the register
2014-04-13 14:38:00 +01:00
..
6502 Removed unused variable. 2014-03-27 19:24:23 +01:00
arm Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
avr Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
cc253x Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
cc2430 Split the cc2430 custom rules into its own file 2014-01-26 23:20:40 +01:00
cc2538 Fix CC2538 random_init lockup 2014-04-13 14:38:00 +01:00
mc1322x Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
msp430 Merge pull request #606 from atiselsts/master 2014-04-09 21:52:08 +02:00
native Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
pic32 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
rl78 rl78: Attempt to locate the IAR installation automatically and instruct the user how to specify IAR_PATH if it cannot be found. 2014-01-24 12:50:43 -05:00
stm32w108 Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
x86 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00