memset() trouble
Posted: Sat Mar 16, 2019 4:30 pm
I have the function:
The code doesn't execute after memset().
addr = 0xc000,
max_size*sizeof(type_t) is around 500 000.
The function is called by this, that is called by this, that is called in the kernel.
memset() source.
How to fix if?
Code: Select all
ordered_array_t place_ordered_array(void *addr, u32int max_size, lessthan_predicate_t less_than)
{
ordered_array_t to_ret;
to_ret.array = (type_t*)addr;
memset(to_ret.array, 0, max_size*sizeof(type_t));
to_ret.size = 0;
to_ret.max_size = max_size;
to_ret.less_than = less_than;
return to_ret;
}
addr = 0xc000,
max_size*sizeof(type_t) is around 500 000.
The function is called by this, that is called by this, that is called in the kernel.
memset() source.
How to fix if?