diff options
author | phk <phk@FreeBSD.org> | 1996-05-02 10:43:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-02 10:43:17 +0000 |
commit | 779840c457bb3a546512321e6b47d89829e421ca (patch) | |
tree | cb8228f2628c3afe7a8e21ed27769c79832dab3b /sys/compat/linux/linux_misc.c | |
parent | 2476b0058a968684c543c328f819404038e7c419 (diff) | |
download | FreeBSD-src-779840c457bb3a546512321e6b47d89829e421ca.zip FreeBSD-src-779840c457bb3a546512321e6b47d89829e421ca.tar.gz |
First pass at cleaning up macros relating to pages, clusters and all that.
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 bbdb303..6112771 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 |