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:
parent
916b872033
commit
dc2d219a86
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user