Changeset c24b272f in mainline
- Timestamp:
- 2011-12-09T23:13:21Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c3e482
- Parents:
- bb7e6fc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/ra.c
rbb7e6fc5 rc24b272f 160 160 hash_table_create(&span->used, USED_BUCKETS, 1, &used_ops); 161 161 162 for (i = 0; i < span->max_order; i++)162 for (i = 0; i <= span->max_order; i++) 163 163 list_initialize(&span->free[i]); 164 164 … … 257 257 newbase = ALIGN_UP(seg->base, align); 258 258 if (newbase + size != seg->base + ra_segment_size_get(seg)) { 259 ASSERT(newbase + size< seg->base +260 ra_segment_size_get(seg));259 ASSERT(newbase + (size - 1) < seg->base + 260 (ra_segment_size_get(seg) - 1)); 261 261 succ = ra_segment_create(newbase + size); 262 262 if (!succ) {
Note:
See TracChangeset
for help on using the changeset viewer.