libminixfs: statically allocate iovec

. initial 'fix' for assert() firing on iovec
	  size on ARM. likely due to alloc_contig() allocating
	  unusually mapped memory in STATICINIT.

Change-Id: I3d8dc635b1cf2666e55b0393feae74cc25b8fed4
This commit is contained in:
Ben Gras 2013-10-03 17:22:07 +02:00 committed by Gerrit Code Review
parent 4c87adc85c
commit 7d0b45ab9b

View File

@ -616,12 +616,10 @@ void lmfs_rw_scattered(
int gap;
register int i;
register iovec_t *iop;
static iovec_t *iovec = NULL;
static iovec_t iovec[NR_IOREQS];
u64_t pos;
int iov_per_block;
STATICINIT(iovec, NR_IOREQS);
assert(dev != NO_DEV);
assert(!(fs_block_size % PAGE_SIZE));
assert(fs_block_size > 0);