1/****************************************************************************** 2 * 3 * Filename: env_vars.c 4 * 5 * Instantiation of environment variables, structures, and other globals. 6 * 7 * Revision information: 8 * 9 * 20AUG2004 kb_admin initial creation 10 * 11 * BEGIN_KBDD_BLOCK 12 * No warranty, expressed or implied, is included with this software. It is 13 * provided "AS IS" and no warranty of any kind including statutory or aspects 14 * relating to merchantability or fitness for any purpose is provided. All 15 * intellectual property rights of others is maintained with the respective 16 * owners. This software is not copyrighted and is intended for reference 17 * only. 18 * END_BLOCK 19 * |
20 * $FreeBSD: head/sys/boot/arm/at91/bootspi/env_vars.c 163597 2006-10-21 22:44:26Z imp $ |
21 *****************************************************************************/ 22 23#include "env_vars.h" 24#include "loader_prompt.h" 25#include "lib.h" 26 27/******************************* GLOBALS *************************************/ 28char boot_commands[MAX_BOOT_COMMANDS][MAX_INPUT_SIZE]; --- 48 unchanged lines hidden (view full) --- 77 * .KB_C_FN_DEFINITION_END 78 */ 79void 80DumpBootCommands(void) 81{ 82 int i; 83 84 for (i = 0; boot_commands[i][0]; i++) |
85 printf("0x%x : %s[E]\n", i, boot_commands[i]); |
86} 87 88 89/* 90 * .KB_C_FN_DEFINITION_START 91 * void LoadBootCommands(void) 92 * This global function loads the existing boot commands from raw format and 93 * coverts it to the standard, command-index format. Notice, the processed --- 26 unchanged lines hidden (view full) --- 120 */ 121void 122ExecuteEnvironmentFunctions(void) 123{ 124 currentIndex = 0; 125 currentOffset = 0; 126 127 DumpBootCommands(); |
128 printf("Autoboot...\n"); |
129 Bootloader(ReadCharFromEnvironment); 130} |