diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-09-17 01:13:48 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-09-17 01:13:48 +0000 |
commit | e99a1f6567e231d9c4bfa06ae7938901893e3099 (patch) | |
tree | 1fcc24da0bf7fbaa710093c9e7ff420bd296c1b8 /sys/mips | |
parent | 28dfe1ce48ce3ed12ed5179ad47a0bef5935005f (diff) | |
download | FreeBSD-src-e99a1f6567e231d9c4bfa06ae7938901893e3099.zip FreeBSD-src-e99a1f6567e231d9c4bfa06ae7938901893e3099.tar.gz |
Make a note of which platforms the mac strings come from.
Suggested by: adrian
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/atheros/ar71xx_machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xx_machdep.c b/sys/mips/atheros/ar71xx_machdep.c index f9bacb6..ec355cc 100644 --- a/sys/mips/atheros/ar71xx_machdep.c +++ b/sys/mips/atheros/ar71xx_machdep.c @@ -235,6 +235,10 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused, else printf ("envp is invalid\n"); + /* + * "ethaddr" is passed via envp on RedBoot platforms + * "kmac" is passed via argv on RouterBOOT platforms + */ if ((var = getenv("ethaddr")) != NULL || (var = getenv("kmac")) != NULL) { count = sscanf(var, "%x%*c%x%*c%x%*c%x%*c%x%*c%x", |