From owner-freebsd-smp Wed Jul 16 18:03:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA22493 for smp-outgoing; Wed, 16 Jul 1997 18:03:51 -0700 (PDT) Received: from twinlark.arctic.org (twinlark.arctic.org [204.62.130.91]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA22482 for ; Wed, 16 Jul 1997 18:03:46 -0700 (PDT) Received: (qmail 12474 invoked by uid 500); 17 Jul 1997 01:03:44 -0000 Date: Wed, 16 Jul 1997 18:03:44 -0700 (PDT) From: Dean Gaudet To: Steve Passe cc: smp@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: self modifying kernel code In-Reply-To: <199707162042.OAA09705@Ilsa.StevesCafe.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 16 Jul 1997, Steve Passe wrote: > Peter pointed out a technique where another SMP kernel > puts calls in the kernel to a pseudo-lock routine. This routine then > determines whether it is running on a UP or SMP motherboard. If UP it replaces > the call with a near jump to the return address. If SMP it replaces the call > TARGET address with the address of the real lock routine. DEC OSF/1. I can't get at my bookmarks, but there's a good txt file available on one of dec's many servers that describes the process by which they moved to fine-grained SMP in OSF/1 and it talks about the above technique. Dean