FreeBSD/sys/boot/arm/at91/bootiic/env_vars.c
/*
 * .KB_C_FN_DEFINITION_START
 * void LoadBootCommands(void)
 *  This global function loads the existing boot commands from raw format and
 * coverts it to the standard, command-index format.  Notice, the processed
 * boot command table has much more space allocated than the actual table
 * stored in non-volatile memory.  This is because the processed table
 * exists in RAM which is larger than the non-volatile space.
 * .KB_C_FN_DEFINITION_END
 */
.KB_C_FN_DEFINITION_START
void LoadBootCommands(void)
This global function loads the existing boot commands from raw format and
coverts it to the standard, command-index format.  Notice, the processed
boot command table has much more space allocated than the actual table
stored in non-volatile memory.  This is because the processed table
exists in RAM which is larger than the non-volatile space.
. KB_C_FN_DEFINITION_START void LoadBootCommands ( void ) This global function loads the existing boot commands from raw format and coverts it to the standard command - index format . Notice the processed boot command table has much more space allocated than the actual table stored in non - volatile memory . This is because the processed table exists in RAM which is larger than the non - volatile space .
void
LoadBootCommands(void)
{
	int	index, j, size;
	char	*cPtr;
	p_memset((char*)boot_commands, 0, sizeof(boot_commands));
	cPtr = &BootCommandSection;
	size = MAX_ENV_SIZE_BYTES;
	for (index = 0; (index < MAX_BOOT_COMMANDS) && size; ++index) {
		for (j = 0; (j < MAX_INPUT_SIZE) && size; ++j) {
			size--;
			boot_commands[index][j] = *cPtr++;
			if (!(boot_commands[index][j])) {
				break;
			}
		}
	}
}
void LoadBootCommands ( void ) { int index , j , size ; char * cPtr ; p_memset ( ( char * ) boot_commands , 0 , sizeof ( boot_commands ) ) ; cPtr = & BootCommandSection ; size = MAX_ENV_SIZE_BYTES ; for ( index = 0 ; ( index < MAX_BOOT_COMMANDS ) && size ; ++ index ) { for ( j = 0 ; ( j < MAX_INPUT_SIZE ) && size ; ++ j ) { size -- ; boot_commands [ index ] [ j ] = * cPtr ++ ; if ( ! ( boot_commands [ index ] [ j ] ) ) { break ; } } } }
.KB_C_FN_DEFINITION_START
 void LoadBootCommands(void)
  This global function loads the existing boot commands from raw format and
 coverts it to the standard, command-index format.
. KB_C_FN_DEFINITION_START void LoadBootCommands ( void ) This global function loads the existing boot commands from raw format and coverts it to the standard command - index format .