Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 1999 12:23:52 -0500 (EST)
From:      zhihuizhang <bf20761@binghamton.edu>
To:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   how process 0 becomes the swapper
Message-ID:  <Pine.SOL.L3.93.990204113355.8750C-100000@bingsun2>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.L3.93.990204113355.8750C-100000>