--- daemon/buffers.c 31 May 2006 21:03:02 -0000 1.1 +++ daemon/buffers.c 25 Oct 2006 17:58:43 -0000 @@ -41,6 +41,7 @@ /* In the future, we might want to consider allocating several different buffer sizes, say on a log10 scale from 4K up to max_buffer_size... */ +#ifndef STATICTLB void* buffer_list_ptr = &buffer_list; if (posix_memalign(buffer_list_ptr, 16, @@ -51,7 +52,21 @@ errno = ENOMEM; return NULL; } - +#else + { + /* quick testing for static mapped tlb memory */ + static unsigned statictlb_startaddr = 0xa0000000; + buffer_list = (void*)statictlb_startaddr; + + statictlb_startaddr = statictlb_startaddr + + sizeof(struct zoid_buffer)+max_buffer_size; + /* adjust address to be 16-byte aligned */ + if( (statictlb_startaddr%16) != 0 ) { + statictlb_startaddr += 16; + statictlb_startaddr &= ~15; + } + } +#endif buffer_list->next = NULL; }