Date: Thu, 8 Mar 2018 23:07:33 +0100 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, emaste@freebsd.org Subject: Re: svn commit: r302595 - in head/sys: kern net Message-ID: <CAPQ4ffvuRkXNXZT1uwxjZJUyCk9JSyKEs2CPmshDeHmWsU=8wA@mail.gmail.com> In-Reply-To: <201607112125.u6BLPSfT084346@repo.freebsd.org> References: <201607112125.u6BLPSfT084346@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/11/16, Nathan Whitehorn <nwhitehorn@freebsd.org> wrote: > Author: nwhitehorn > Date: Mon Jul 11 21:25:28 2016 > New Revision: 302595 > URL: https://svnweb.freebsd.org/changeset/base/302595 > > Log: > Remove assumptions in MI code that the BSP is CPU 0. > > MFC after: 2 weeks Please MFC this commit to 11-STABLE, since without them, we encounter boot issues with enabled EARLY_AP_STARTUP. Thanks, Oliver > > Modified: > head/sys/kern/init_main.c > head/sys/net/netisr.c > > Modified: head/sys/kern/init_main.c > ============================================================================== > --- head/sys/kern/init_main.c Mon Jul 11 21:23:50 2016 (r302594) > +++ head/sys/kern/init_main.c Mon Jul 11 21:25:28 2016 (r302595) > @@ -495,7 +495,7 @@ proc0_init(void *dummy __unused) > td->td_lend_user_pri = PRI_MAX; > td->td_priority = PVM; > td->td_base_pri = PVM; > - td->td_oncpu = 0; > + td->td_oncpu = curcpu; > td->td_flags = TDF_INMEM; > td->td_pflags = TDP_KTHREAD; > td->td_cpuset = cpuset_thread0(); > > Modified: head/sys/net/netisr.c > ============================================================================== > --- head/sys/net/netisr.c Mon Jul 11 21:23:50 2016 (r302594) > +++ head/sys/net/netisr.c Mon Jul 11 21:25:28 2016 (r302595) > @@ -1273,8 +1273,6 @@ netisr_init(void *arg) > struct pcpu *pc; > #endif > > - KASSERT(curcpu == 0, ("%s: not on CPU 0", __func__)); > - > NETISR_LOCK_INIT(); > if (netisr_maxthreads == 0 || netisr_maxthreads < -1 ) > netisr_maxthreads = 1; /* default behavior */ > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4ffvuRkXNXZT1uwxjZJUyCk9JSyKEs2CPmshDeHmWsU=8wA>