lkml.org 
[lkml]   [1998]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux-2.1.98..
On Fri, Apr 24, 1998 at 09:24:53PM -0500, Michael Elizabeth Chastain wrote:
> Hi guys,
>
> This is a shot in the dark:
>
> Maybe this failure in 'make dep' has something to do with the
> following code in mkdep.c, which mmaps several bytes, and maybe
> a page, *beyond* the end of the file:
>
> mapsize = st.st_size + 2*sizeof(unsigned long);
> mapsize = (mapsize+pagesizem1) & ~pagesizem1;
> map = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0);
>
> This enables the character-reading state machine to run with
> a very fast inner loop, but I don't know if mapping beyond the
> end of the file -- perhaps even into a new page -- is valid.
>

Could be. But wouldn't this mean that the lock would be at the first
encounter of this code? The locks are at different points in the make.

-bb

--
----------------------------------------------------------------------
Dr. Bill Broadhurst | Independent contract Engineer.
(619)296-3710 | BIOS, Firmware, & Diagnostics.
bbroad@CX492564-a.dt1.sdca.home.com | Finger for PGP 5.0 public key.
----------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.345 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site