// $Id$
-/* tab:2
+/*
*
*
* "Copyright (c) 2000-2005 The Regents of the University of California.
if ( addr + len > TOSBOOT_START )
return FAIL;
- boot_page_erase( addr );
+ boot_page_erase_safe( addr );
while( boot_rww_busy() )
- boot_rww_enable();
+ boot_rww_enable_safe();
for ( i = 0; i < len; i += 2 )
- boot_page_fill( addr + i, *wordBuf++ );
+ boot_page_fill_safe( addr + i, *wordBuf++ );
- boot_page_write( addr );
+ boot_page_write_safe( addr );
while ( boot_rww_busy() )
- boot_rww_enable();
+ boot_rww_enable_safe();
return SUCCESS;