ts-7000
[Top] [All Lists]

[ts-7000] Re: TS7500 - use of reservemem() function?

To:
Subject: [ts-7000] Re: TS7500 - use of reservemem() function?
From: "jesseoff" <>
Date: Mon, 26 Oct 2009 23:32:23 -0000

> > It appears to be making accesses to every page in a 32k block of data 
> > allocated on the stack and every page in the current processes memory map.  
> > One rationale for this might be to ensure that every page is in memory and 
> > not paged out to disk, but it doesn't make sense on an embedded computer 
> > with no swap disk.  In addition, the line of code that actually makes the 
> > memory access is missing from sbus.c but present in ts7500ctl.c.  It goes 
> > through all the motions of preparing to make all the memory accesses then 
> > fails to do so.
> > 
> 
> I will check on this.  This is incorrect if so.  
> 

It was incorrect -- thanks for the heads up.  sbus.c has now been fixed on our 
FTP site.  I also just added an extra check to only follow mappings in 
/proc/self/maps marked as readable.  I ran across a system that mapped some 
section of a library into the address space of the process as non-readable-- it 
shouldn't attempt to cause a page fault in that case.

//Jesse Off



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU