From owner-freebsd-current Wed Apr 28 9:25:32 1999 Delivered-To: freebsd-current@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id EEE7D14E94; Wed, 28 Apr 1999 09:25:29 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id MAA05043; Wed, 28 Apr 1999 12:25:28 -0400 (EDT) (envelope-from luoqi) Date: Wed, 28 Apr 1999 12:25:28 -0400 (EDT) From: Luoqi Chen Message-Id: <199904281625.MAA05043@lor.watermarkgroup.com> To: luoqi@watermarkgroup.com, phk@critter.freebsd.dk Subject: Re: HEADS UP! to commit SMP vmspace sharing patches Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <199904272349.TAA28969@lor.watermarkgroup.com>, Luoqi Chen writes: > >I'm about to commit the SMP vmspace sharing patch (the %fs approach). All > >kernel modules will need to be recompiled. Recompilation is not neccessary > >for user land applications including ps, libkvm and friends. > > > >In this %fs approach, per-processor private pages are no longer mapped at > >identical virtual address for each cpu, instead a new segment descriptor (%fs) > >is setup to access per-cpu global variables like curproc. > > How is this accessed from C sources ? > curproc is now a macro defined as an inline asm function. > -- > Poul-Henning Kamp FreeBSD coreteam member > phk@FreeBSD.ORG "Real hackers run -current on their laptop." > FreeBSD -- It will take a long time before progress goes too far! > -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message