Changeset 03934c9e in mainline
- Timestamp:
- 2012-02-12T08:53:40Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cd00f93
- Parents:
- 50601ef (diff), e10d41a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- kernel/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
r50601ef r03934c9e 69 69 uint64_t sz2) 70 70 { 71 uint64_t e1 = s1 + sz1; 72 uint64_t e2 = s2 + sz2; 73 71 uint64_t e1; 72 uint64_t e2; 73 74 /* Handle the two corner cases when either sz1 or sz2 are zero. */ 75 if (sz1 == 0) 76 return (s1 == s2) && (sz2 == 0); 77 e1 = s1 + sz1 - 1; 78 if (sz2 == 0) 79 return (s1 <= s2) && (s2 <= e1); 80 e2 = s2 + sz2 - 1; 81 82 /* e1 and e2 are end addresses, the sum is imune to overflow */ 74 83 return ((s1 <= s2) && (e1 >= e2)); 75 84 } -
kernel/generic/src/mm/km.c
r50601ef r03934c9e 134 134 ASSERT(ALIGN_UP(size, FRAME_SIZE) == size); 135 135 136 /* Enforce natural or at least PAGE_SIZE alignment. */ 136 137 align = ispwr2(size) ? size : (1U << (fnzb(size) + 1)); 137 138 vaddr = km_page_alloc(size, max(PAGE_SIZE, align));
Note:
See TracChangeset
for help on using the changeset viewer.