From owner-freebsd-smp Wed Jul 16 16:36:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA17665 for smp-outgoing; Wed, 16 Jul 1997 16:36:27 -0700 (PDT) Received: from Ilsa.StevesCafe.com (Ilsa.StevesCafe.com [205.168.119.129]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA17634; Wed, 16 Jul 1997 16:36:18 -0700 (PDT) Received: from Ilsa.StevesCafe.com (localhost [127.0.0.1]) by Ilsa.StevesCafe.com (8.8.6/8.8.5) with ESMTP id RAA10611; Wed, 16 Jul 1997 17:35:01 -0600 (MDT) Message-Id: <199707162335.RAA10611@Ilsa.StevesCafe.com> X-Mailer: exmh version 2.0gamma 1/27/96 From: Steve Passe To: Wayne Scott cc: smp@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: self modifying kernel code In-reply-to: Your message of "Wed, 16 Jul 1997 15:45:25 PDT." <199707162245.PAA07524@pdxlx008.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 16 Jul 1997 17:35:01 -0600 Sender: owner-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, > At startup the call is to a routine that computes the correct target > address. In the fixup routine you change the call address and then > jump to the target directly. It will be a long time before you > actually execute the modified code. and in the case of UP you would overlay the call with the jump near + nops, then jump directly to the jump near's target, so again plenty of time to flush... -- Steve Passe | powered by smp@csn.net | Symmetric MultiProcessor FreeBSD