From owner-freebsd-current Fri May 31 18: 0:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id EDFEA37B407 for ; Fri, 31 May 2002 18:00:14 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020601010014.YAWB2751.rwcrmhc52.attbi.com@InterJet.elischer.org>; Sat, 1 Jun 2002 01:00:14 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA30943; Fri, 31 May 2002 17:50:00 -0700 (PDT) Date: Fri, 31 May 2002 17:49:59 -0700 (PDT) From: Julian Elischer To: Jake Burkholder Cc: FreeBSD current users Subject: Re: Seeking OK to commit KSE MIII-again In-Reply-To: <20020531203317.W62759@locore.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG interesting but not exactly brief.. :-) On Fri, 31 May 2002, Jake Burkholder wrote: > > The system call stubs in libc are leaf functions; basically just a > trap instruction followed by a return. They do not touch the stack > at all, or change the stack pointer. One of the first few instructions > on entry to the kernel is a save, which rotates the register window > and logically saves the call-safe registers onto the user stack > (the outs become the ins, and the kernel gets new ins and locals, > with the old ones being saved to the user stack once a flush is > performed or they get spilled out). the question is "when does it switch to the kernel stack?" (and back?) > > Here is a reference: http://www.sparc.com/standards/v9.ps.Z downloaded... 300+ pages.. hmm. > > Jake > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message