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/i386/linux/imgact_linux.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/i386/linux/imgact_linux.c')
-rw-r--r-- | sys/i386/linux/imgact_linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c index ea1b4c5..cef58c5 100644 --- a/sys/i386/linux/imgact_linux.c +++ b/sys/i386/linux/imgact_linux.c @@ -28,7 +28,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: imgact_linux.c,v 1.13 1996/03/19 15:02:33 bde Exp $ + * $Id: imgact_linux.c,v 1.14 1996/05/01 02:42:32 bde Exp $ */ #include <sys/param.h> @@ -97,7 +97,7 @@ exec_linux_imgact(imgp) */ if (a_out->a_entry < virtual_offset || a_out->a_entry >= virtual_offset + a_out->a_text || - a_out->a_text % NBPG || a_out->a_data % NBPG) + a_out->a_text & PAGE_MASK || a_out->a_data & PAGE_MASK) return (-1); /* text + data can't exceed file size */ @@ -125,7 +125,7 @@ exec_linux_imgact(imgp) * 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("imgact: Non page aligned binary %d\n", file_offset); #endif |