Date: Thu, 27 Jan 2005 14:26:29 -0500 From: Brian Fundakowski Feldman <green@freebsd.org> To: Jacques Fourie <jacques.fourie@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: kernel vm question Message-ID: <20050127192629.GB1009@green.homeunix.org> In-Reply-To: <be2f52430501270848132f15c8@mail.gmail.com> References: <41F90140.3020705@trispen.com> <20050127160914.GA72454@VARK.MIT.EDU> <be2f52430501270848132f15c8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 27, 2005 at 06:48:56PM +0200, Jacques Fourie wrote: > Hi, > > Yes, I am trying to patch a piece of code in the kernel. The strange > thing is that this code works without a problem on FreeBSD 4.8 - has > the VM system changed to such an extent between 4.8 and 4.9 that the > pages in the kernel code segment are not writeable anymore? > > Thanks for the bit about the compiler optimization - at least I > understand that part now :) They should have never been writable. You should be able to change that protection on the page temporarily though to achieve the effect you want; take a look at e.g. mprotect(), you should be able to do much the same thing with kernel_map instead. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050127192629.GB1009>