From owner-freebsd-hackers Thu Feb 4 09:24:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA20000 for freebsd-hackers-outgoing; Thu, 4 Feb 1999 09:24:09 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bingsun2.cc.binghamton.edu (bingsun2.cc.binghamton.edu [128.226.1.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA19940 for ; Thu, 4 Feb 1999 09:24:00 -0800 (PST) (envelope-from bf20761@binghamton.edu) Received: from localhost (bf20761@localhost) by bingsun2.cc.binghamton.edu (8.8.7/8.6.9) with SMTP id MAA16941 for ; Thu, 4 Feb 1999 12:23:52 -0500 (EST) Date: Thu, 4 Feb 1999 12:23:52 -0500 (EST) From: zhihuizhang X-Sender: bf20761@bingsun2 Reply-To: zhihuizhang To: hackers Subject: how process 0 becomes the swapper Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am wondering how the swapper code (I think it should be in swap_pager.c and vm_swap.c) is associated with the proc0. Proc0 is created by hand in init_main.c and machdep.c. Everything is setup there, including VM, signal, stack used for stack switch, etc. But the TSS is not fully setup. I mean the registers like %eip to indicate the code for process 0. I maybe dumb to ask this. But a little hint may help me out. Thanks. -------------------------------------------------- | Zhihui Zhang, http://cs.binghamton.edu/~zzhang | | Dept. of Computer Science, SUNY at Binghamton | -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message