Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2011 19:28:30 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228088 - head/sys/mips/cavium
Message-ID:  <201111281928.pASJSUUc005394@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Mon Nov 28 19:28:29 2011
New Revision: 228088
URL: http://svn.freebsd.org/changeset/base/228088

Log:
  - Copy base MAC address from bootinfo descriptor to sysinfo struct
  
  Reviewed by:	Andrew Duane

Modified:
  head/sys/mips/cavium/octeon_machdep.c

Modified: head/sys/mips/cavium/octeon_machdep.c
==============================================================================
--- head/sys/mips/cavium/octeon_machdep.c	Mon Nov 28 19:14:38 2011	(r228087)
+++ head/sys/mips/cavium/octeon_machdep.c	Mon Nov 28 19:28:29 2011	(r228088)
@@ -569,6 +569,8 @@ octeon_process_app_desc_ver_6(void)
 					octeon_bootinfo->board_rev_major,
 					octeon_bootinfo->board_rev_minor,
 					octeon_bootinfo->eclock_hz);
+	memcpy(cvmx_sysinfo_get()->mac_addr_base, octeon_bootinfo->mac_addr_base, 6);
+	cvmx_sysinfo_get()->mac_addr_count = octeon_bootinfo->mac_addr_count;
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111281928.pASJSUUc005394>