#define boot_rww_enable_safe() \
	do { \
    boot_spm_busy_wait();                       \
    eeprom_busy_wait();                         \
    boot_rww_enable();                          \
} while (0) 

Same as boot_rww_enable() except waits for eeprom and spm operations to complete before enabling the RWW mameory.