From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 14 08:21:47 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C4A416A41F for ; Tue, 14 Jun 2005 08:21:47 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA5443D1F for ; Tue, 14 Jun 2005 08:21:44 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so132364nzp for ; Tue, 14 Jun 2005 01:21:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hLSJbu4oo5mDsmqeHhUxDpWx67ECiTPlRk9sqboqrDCPrr7BEe6sL/R1X7suKx2t3FaN4MPuJq3q13dbSCghy4yuj1ifUZxO99JbTHx6DIJQmaZyF1Sjq/gYQ27ahKeq9SuLnzOGeVXuwFu0vsTuEFh1GAiVjKTbaBweii/hL5o= Received: by 10.36.222.24 with SMTP id u24mr3505013nzg; Tue, 14 Jun 2005 01:21:41 -0700 (PDT) Received: by 10.36.58.12 with HTTP; Tue, 14 Jun 2005 01:21:41 -0700 (PDT) Message-ID: <37273927050614012154fdb80b@mail.gmail.com> Date: Tue, 14 Jun 2005 04:21:41 -0400 From: Aziz Kezzou To: freebsd-hackers , freebsd-net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: FreeBSD Memory Management questions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Aziz Kezzou List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 08:21:47 -0000 Hi all, I have two questions concerning FreeBSD Memory management : 1 - Right now to access the memory address space of a user process from kernel mode, I only have to set, on x86 systems, the register CR3 to the right value. How can I do that on other architectures ? is there an architecture-independant way of doing that ? 2- I have noticed that while in kernel mode the value of CR3 is equal to that of the user process beeing interrupted. Doesn't the kernel supposed to have its "own" page-directory, i.e it's own CR3 value ? or is kernel virtual address resolution does not go through CR3 at all ? =20 Thanks for your help, -aziz