diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-05-02 10:43:17 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-05-02 10:43:17 +0000 |
commit | f8845af0dbef25d2e6f611245f459918081b0cb2 (patch) | |
tree | cb8228f2628c3afe7a8e21ed27769c79832dab3b /sys/compat/linux/linux_misc.c | |
parent | f3e002a838fee75305d388964c7e4ee08075c6d1 (diff) | |
download | src-f8845af0dbef25d2e6f611245f459918081b0cb2.tar.gz src-f8845af0dbef25d2e6f611245f459918081b0cb2.zip |
First pass at cleaning up macros relating to pages, clusters and all that.
Notes
Notes:
svn path=/head/; revision=15538
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index bbdb30318a42..61127711d81f 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.17 1996/03/19 15:02:34 bde Exp $ + * $Id: linux_misc.c,v 1.18 1996/04/07 17:38:49 bde Exp $ */ #include <sys/param.h> @@ -279,7 +279,7 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval) /* * Check various fields in header for validity/bounds. */ - if (a_out->a_text % NBPG || a_out->a_data % NBPG) { + if (a_out->a_text & PAGE_MASK || a_out->a_data & PAGE_MASK) { error = ENOEXEC; goto cleanup; } @@ -311,7 +311,7 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval) * Currently we cannot handle misalinged file offsets, * and so we read in the entire image (what a waste). */ - if (file_offset & PGOFSET) { + if (file_offset & PAGE_MASK) { #ifdef DEBUG printf("uselib: Non page aligned binary %d\n", file_offset); #endif |