From owner-freebsd-hackers Fri Jul 13 10:32:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id 2B63737B406 for ; Fri, 13 Jul 2001 10:32:37 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id AF4905D01F; Fri, 13 Jul 2001 12:32:36 -0500 (CDT) Date: Fri, 13 Jul 2001 12:32:36 -0500 From: Alfred Perlstein To: "Eugene L. Vorokov" Cc: freebsd-hackers@freebsd.org Subject: Re: Some questions about kernel programming Message-ID: <20010713123236.T6664@sneakerz.org> References: <20010712212809.F6664@sneakerz.org> <200107131538.f6DFctQ00744@bugz.infotecs.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200107131538.f6DFctQ00744@bugz.infotecs.ru>; from vel@bugz.infotecs.ru on Fri, Jul 13, 2001 at 07:38:55PM +0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Eugene L. Vorokov [010713 10:24] wrote: > > ch = fubyte(uaddr); > > And one more question, does this mean that I can't use things x = *uaddr > and *uaddr = x for userspace, but always have to use fubyte() and subyte () ? > If so, what is the reason it was done like that ? Intel has an extention for i386 (FreeBSD doesn't currently use it), but it allows for something like 36bits of address space, the only problem is that you're limited to a 32bit window into the 36 bit address space. So basically, your kernel and your userland application are probably going to have different memory location, in fact the userland addresses may not even be available to the kernel without using special address registers. This is why you need these function, to do data transfer to/from alternate address spaces. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message