Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/marvell Get bootargs and parse them. This wa...



details:   https://anonhg.NetBSD.org/src/rev/7bd6fbef9e69
branches:  trunk
changeset: 783050:7bd6fbef9e69
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Dec 02 18:20:20 2012 +0000

description:
Get bootargs and parse them. This was accidentally removed in rev. 1.17.
Fixes PR#47250.

diffstat:

 sys/arch/evbarm/marvell/marvell_machdep.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r e53af522f0bc -r 7bd6fbef9e69 sys/arch/evbarm/marvell/marvell_machdep.c
--- a/sys/arch/evbarm/marvell/marvell_machdep.c Sun Dec 02 17:36:10 2012 +0000
+++ b/sys/arch/evbarm/marvell/marvell_machdep.c Sun Dec 02 18:20:20 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: marvell_machdep.c,v 1.19 2012/10/22 15:43:32 matt Exp $ */
+/*     $NetBSD: marvell_machdep.c,v 1.20 2012/12/02 18:20:20 msaitoh Exp $ */
 /*
  * Copyright (c) 2007, 2008, 2010 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: marvell_machdep.c,v 1.19 2012/10/22 15:43:32 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: marvell_machdep.c,v 1.20 2012/12/02 18:20:20 msaitoh Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_ddb.h"
@@ -375,6 +375,10 @@
        /* we've a specific device_register routine */
        evbarm_device_register = marvell_device_register;
 
+       /* parse bootargs from U-Boot */
+       boot_args = bootargs;
+       parse_mi_bootargs(boot_args);
+
        return initarm_common(KERNEL_VM_BASE, KERNEL_VM_SIZE, NULL, 0);
 }
 



Home | Main Index | Thread Index | Old Index