#define boot_rww_busy() \
	(__SPM_REG & (uint8_t)_BV(__COMMON_ASB)) 

Check if the RWW section is busy.