From owner-svn-src-head@FreeBSD.ORG Tue Apr 19 15:05:13 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CCA0106566C; Tue, 19 Apr 2011 15:05:13 +0000 (UTC) (envelope-from pluknet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3C53F8FC08; Tue, 19 Apr 2011 15:05:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3JF5DxC011445; Tue, 19 Apr 2011 15:05:13 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3JF5DAX011443; Tue, 19 Apr 2011 15:05:13 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201104191505.p3JF5DAX011443@svn.freebsd.org> From: Sergey Kandaurov Date: Tue, 19 Apr 2011 15:05:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220836 - head/sys/arm/xscale/i8134x X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 15:05:13 -0000 Author: pluknet Date: Tue Apr 19 15:05:12 2011 New Revision: 220836 URL: http://svn.freebsd.org/changeset/base/220836 Log: Call init_param1() much earlier, so that msgbufsize is non-zero when we want to map and use the msgbuf. Reviewed by: cognet MFC after: 1 week Modified: head/sys/arm/xscale/i8134x/crb_machdep.c Modified: head/sys/arm/xscale/i8134x/crb_machdep.c ============================================================================== --- head/sys/arm/xscale/i8134x/crb_machdep.c Tue Apr 19 15:03:12 2011 (r220835) +++ head/sys/arm/xscale/i8134x/crb_machdep.c Tue Apr 19 15:05:12 2011 (r220836) @@ -196,6 +196,9 @@ initarm(void *arg, void *arg2) pcpu_init(pcpup, 0, sizeof(struct pcpu)); PCPU_SET(curthread, &thread0); + /* Do basic tuning, hz etc */ + init_param1(); + freemempos = 0x00200000; /* Define a macro to simplify memory allocation */ #define valloc_pages(var, np) \ @@ -389,8 +392,6 @@ initarm(void *arg, void *arg2) phys_avail[i++] = 0; phys_avail[i] = 0; - /* Do basic tuning, hz etc */ - init_param1(); init_param2(physmem); kdb_init(); return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -