Deleted Added
full compact
env_vars.c (161202) env_vars.c (163596)
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 *
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/bootiic/env_vars.c 161202 2006-08-10 19:55:52Z imp $
20 * $FreeBSD: head/sys/boot/arm/at91/bootiic/env_vars.c 163596 2006-10-21 22:43:39Z 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];

--- 59 unchanged lines hidden (view full) ---

88 for (i = 0; i < MAX_BOOT_COMMANDS; ++i) {
89
90 copySize = p_strlen(boot_commands[i]);
91 size -= copySize + 1;
92
93 if (size < 0) {
94 continue;
95 }
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];

--- 59 unchanged lines hidden (view full) ---

88 for (i = 0; i < MAX_BOOT_COMMANDS; ++i) {
89
90 copySize = p_strlen(boot_commands[i]);
91 size -= copySize + 1;
92
93 if (size < 0) {
94 continue;
95 }
96 p_memcpy(cPtr, boot_commands[i], copySize);
96 memcpy(cPtr, boot_commands[i], copySize);
97 cPtr += copySize;
98 *cPtr++ = 0;
99 }
100
101 /* We're executing in low RAM so addr in ram == offset in eeprom */
102 WriteEEPROM((unsigned)&BootCommandSection, env_table,
103 sizeof(env_table));
104}

--- 103 unchanged lines hidden ---
97 cPtr += copySize;
98 *cPtr++ = 0;
99 }
100
101 /* We're executing in low RAM so addr in ram == offset in eeprom */
102 WriteEEPROM((unsigned)&BootCommandSection, env_table,
103 sizeof(env_table));
104}

--- 103 unchanged lines hidden ---