Convert remaining {g,s}etenv->kern_{g,s}etenv

left over from r273174.

Reported by:    bz
This commit is contained in:
davide 2014-10-17 17:34:05 +00:00
parent 80a1a77bec
commit 6fa012e88a
5 changed files with 11 additions and 11 deletions

View File

@ -52,7 +52,7 @@ cfe_env_init(void)
if (cfe_enumenv(idx, name, sizeof(name), val, sizeof(val)) != 0)
break;
if (setenv(name, val) != 0) {
if (kern_setenv(name, val) != 0) {
printf("No space to store CFE env: \"%s=%s\"\n",
name, val);
}

View File

@ -263,7 +263,7 @@ nvram2env_attach(device_t dev)
if (bootverbose)
printf("ENV: %s=%s\n", pair, value);
#endif
setenv(pair, value);
kern_setenv(pair, value);
if (strcasecmp(pair, "WAN_MAC_ADDR") == 0) {
/* Alias for MAC address of eth0 */
@ -271,7 +271,7 @@ nvram2env_attach(device_t dev)
printf("ENV: aliasing "
"WAN_MAC_ADDR to ethaddr"
" = %s\n", value);
setenv("ethaddr", value);
kern_setenv("ethaddr", value);
}
else if (strcasecmp(pair, "LAN_MAC_ADDR") == 0){
/* Alias for MAC address of eth1 */
@ -279,7 +279,7 @@ nvram2env_attach(device_t dev)
printf("ENV: aliasing "
"LAN_MAC_ADDR to eth1addr"
" = %s\n", value);
setenv("eth1addr", value);
kern_setenv("eth1addr", value);
}
if (strcmp(pair, "bootverbose") == 0)

View File

@ -164,9 +164,9 @@ _parse_bootargs(char *cmdline)
} else {
n = strsep(&v, "=");
if (v == NULL)
setenv(n, "1");
kern_setenv(n, "1");
else
setenv(n, v);
kern_setenv(n, v);
}
}
}

View File

@ -458,9 +458,9 @@ platform_start(__register_t a0 __unused,
printf("\t%s\n", arg);
n = strsep(&arg, "=");
if (arg == NULL)
setenv(n, "1");
kern_setenv(n, "1");
else
setenv(n, arg);
kern_setenv(n, arg);
}
xlr_set_boot_flags();

View File

@ -167,7 +167,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
arg = (char *)(intptr_t)MIPS_PHYS_TO_KSEG0(argv[i]);
printf("\targv[%d] = %s\n", i, arg);
sprintf(n, "argv%d", i);
setenv(n, arg);
kern_setenv(n, arg);
}
}
@ -180,9 +180,9 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
printf("\t%s\n", arg);
n = strsep(&arg, "=");
if (arg == NULL)
setenv(n, "1");
kern_setenv(n, "1");
else
setenv(n, arg);
kern_setenv(n, arg);
}