[PATCH-updated] access user space addresses/switch process context

Vamsi Krishna S . vamsi at in.ibm.com
Wed Apr 16 22:41:02 PDT 2003


On Thu, Apr 17, 2003 at 12:15:32PM +1000, Keith Owens wrote:
> On Wed, 16 Apr 2003 20:54:13 +0530, 
> "Vamsi Krishna S ." <vamsi at in.ibm.com> wrote:
> >Here is the updated patch. Changes from the previous version:
> >- implement kdb_follow_page in mm/memory.c itself to be able to
> >  use follow_page() directly.
> >- support for writing into ("mm") user space addresses
> >- export kdb_get[put]userarea_size so that kdb modules will
> >  be able to use kdb_get[put]word.
> >- implement this for ia64 along with i386.
> 
> On ia64, PAGE_OFFSET is 0xe000000000000000, testing against that
> excludes I/O space (0xc) and modules/vmalloc (0xa).  The correct test
> for user regions on ia64 is
> 
> 	if (address >> 61 <= 4)
> 
> Applied to my tree with that correction.  To be released as kdb v4.2
> next week, after we finish moving offices :(
> 
> 
I wasn't quite cetain about that test's correctness on ia64. Thanks
very much for correcting it.

Regards,
Vamsi.
-- 
Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5044959
Internet: vamsi at in.ibm.com



More information about the kdb mailing list