Module Name: src Committed By: yamt Date: Wed May 27 12:08:36 UTC 2009
Modified Files: src/sys/sys: lwp.h Log Message: add a comment about USER_TO_UAREA/UAREA_TO_USER. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/sys/sys/lwp.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/lwp.h diff -u src/sys/sys/lwp.h:1.118 src/sys/sys/lwp.h:1.119 --- src/sys/sys/lwp.h:1.118 Sat May 23 17:08:05 2009 +++ src/sys/sys/lwp.h Wed May 27 12:08:35 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: lwp.h,v 1.118 2009/05/23 17:08:05 ad Exp $ */ +/* $NetBSD: lwp.h,v 1.119 2009/05/27 12:08:35 yamt Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -181,6 +181,14 @@ uint64_t *l_syscall_counter; /* !: counter for current process */ }; +/* + * USER_TO_UAREA/UAREA_TO_USER: macros to convert between + * the lowest address of the uarea (UAREA) and lwp::l_addr (USER). + * + * the default is just a cast. MD code can modify it by defining + * either these macros or UAREA_USER_OFFSET in <machine/proc.h>. + */ + #if !defined(USER_TO_UAREA) #if !defined(UAREA_USER_OFFSET) #define UAREA_USER_OFFSET 0