[haiku-development] Re: Writing Device Drivers Publishing notes

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 14 May 2011 13:59:40 +0200

On 2011-05-14 at 06:33:26 [+0200], Earl Pottinger 
<earl_colby_pottinger@xxxxxxxxx> wrote:
> I plan to, but you know the old saying: "Better have all others think you 
> are a fool, than open your mouth and remove all doubt."
> Family problems have delay my response.
> I am collecting some sample code and explanations to show what I am seeing.
> Also I testing and removing some bugs in my own code that may account for 
> some of the problems I have seen.
> One thing, I seem to have random crashes if I have a static array that is 
> greater than 256 MB inside my driver.  Is the a limit to how large a 
> driver's data section can be?

The limit is more or less the size of the kernel address space (nearly 2 GB 
for x86) minus other allocations. 256 MB are quite a lot though, especially, 
if the system only has relatively small RAM. Even with 1 GB you'd 
permanently bind 1/4 of the RAM.

CU, Ingo

Other related posts: