From owner-freebsd-arm@FreeBSD.ORG Fri Mar 8 17:37:49 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C233F965 for ; Fri, 8 Mar 2013 17:37:49 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f43.google.com (mail-oa0-f43.google.com [209.85.219.43]) by mx1.freebsd.org (Postfix) with ESMTP id 906EB852 for ; Fri, 8 Mar 2013 17:37:49 +0000 (UTC) Received: by mail-oa0-f43.google.com with SMTP id l10so2293284oag.2 for ; Fri, 08 Mar 2013 09:37:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=iBzt70+LyvC95wWX7k2bUMc60BvO/0dQQqKmPnrTPo8=; b=Gm7cMDYbPwfEAv9o2vI5O/bUtapUjxEj0GserjujqjFQIv5i88eHmE0oMEajIuPTyg /6jqI9WzOhDQmmJt0Zavdq1r88mUdxLzwjvJ6kDFfW+ke2RKiSQi5iP3euG44sZ75Nd6 svnMNfHxfH2q8+hD8ZmPdeWNe8ti2oIhAxDu7ES0UpQEzbfh96XZ0amdAuvbcv7Fml3V Gh98H+Bz7kfn8A3z1aHyuJNyy51NlVtTpJz/jtOcou7120kYcBfLVBdbuRNAQq7m8s4y alMqPLZo70UDeONycTTQtkeX2YMvMwW+fq16DJJsWnQBZaWTqO4/myRW5jaU14kzRD81 on2g== X-Received: by 10.182.146.42 with SMTP id sz10mr2283583obb.83.1362764263167; Fri, 08 Mar 2013 09:37:43 -0800 (PST) Received: from fusionlt2834a.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPS id qk4sm6363672obc.5.2013.03.08.09.37.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Mar 2013 09:37:41 -0800 (PST) Sender: Warner Losh Subject: Re: profclock overrides? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <63983A6C-0D9F-46D1-BC4E-F7EE717EC676@freebsd.org> Date: Fri, 8 Mar 2013 10:37:39 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <8437A197-5345-458E-8132-78FF0A2CF210@bsdimp.com> References: <63983A6C-0D9F-46D1-BC4E-F7EE717EC676@freebsd.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQnKQYDSNiYBagEMjQEhKFfaog4Cy6uXLBbniG/F7gBlwsniRqLjspPkBDUO2h4CK3eR26W/ Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Mar 2013 17:37:49 -0000 On Mar 7, 2013, at 7:35 PM, Tim Kientzle wrote: > As part of my poking and prodding towards a GENERIC kernel, I'm > trying to see what happens when I actually combine the sources for > different ARM systems together. >=20 > Here's one problem that seems to appear with a lot of the ARM systems: >=20 > ixp425_timer.o: In function `cpu_startprofclock': > = /usr/home/tim/projects/FreeBSD/svn/head/sys/arm/xscale/ixp425/ixp425_timer= .c:263: multiple definition of `cpu_startprofclock' > = kern_clocksource.o:/usr/home/tim/projects/FreeBSD/svn/head/sys/kern/kern_c= locksource.c:734: first defined here > ixp425_timer.o: In function `cpu_stopprofclock': > = /usr/home/tim/projects/FreeBSD/svn/head/sys/arm/xscale/ixp425/ixp425_timer= .c:268: multiple definition of `cpu_stopprofclock' > = kern_clocksource.o:/usr/home/tim/projects/FreeBSD/svn/head/sys/kern/kern_c= locksource.c:754: first defined here >=20 > It looks like a bunch of systems have overridden these two functions > in order to disable the profclock. >=20 > Is this an intrinsic board difference (that should be included in > board/SoC-specific startup vectors), or is there a better way to > do this? I think we should add this to a platform-sw function table that each = platform sets.... Warner